Ecosystem / IDE support
Catch a broken workflow while you type.
An editor extension checks a workflow as you write it. A branch missing an outcome or a tool the task is not granted shows up in the editor, before anything runs. A live preview shows the rendered page beside the file.
Editors
| Editor | Status | Language server | Command | Gives you |
|---|---|---|---|---|
| VS Code | available | awf-cli, bundled | awf lsp | Diagnostics, go to definition on $ref, a live preview beside the editor |
| Neovim | config | awf-cli | awf lsp | Diagnostics, go to definition, render to a browser tab |
| Any YAML editor | schema | yaml-language-server | Schema completion and errors through a modeline, without graph checks |
Tool
awf-cli awf lsp
A language server for OpenAWF. It validates with the same code as the CLI, so the editor and the CLI report the same errors.
VS Code
- Diagnostics on every workflow (
.yaml) and task (.md). - Go to definition from a
$refto the task it names. AWF: Open Previewrenders the file beside the editor, 300 ms after each edit.
Not on the Marketplace yet. Build the .vsix from source.
$ git clone https://github.com/dwwescalelol/awf-cli $ cd awf-cli/editors/vscode $ npm install && npm run package $ code --install-extension openawf-*.vsix
Neovim
- Registers
awf lspthrough nvim-lspconfig for files under.awf. - The
awf/renderrequest returns the rendered page for the unsaved buffer.
require("lspconfig.configs").awf = { default_config = { cmd = { "awf", "lsp" }, filetypes = { "yaml", "markdown" }, root_dir = require("lspconfig").util.root_pattern(".awf"), }, } require("lspconfig").awf.setup({})
Build an editor extension
An extension needs an LSP client and a language server for OpenAWF. It can run awf lsp or bring its own server. The awf lsp protocol, including awf/render, is in editors/README.md.
Open a pull request on the specification repository to list an editor here.