FLOW Language Support
VS Code extension for the FLOW instruction
stream generator. Provides editing support for .flow test scripts and .rules
constraint files.
Features
Phase 2 — Syntax highlighting (shipped)
- Full tokenisation of
.flow and .rules files
- Distinct colours for: core keywords, constraint keywords, type keywords,
mnemonics/identifiers, strings, numbers, weight annotations, operators
- Bracket matching and auto-close for
{} () ""
- Line comment toggle with
#
- Auto-indent on
{
Phase 3 — Completions (coming)
- Grammar-aware keyword and directive completions
- Pool name, scene name, and rule name completions from the current file
- Document outline (test / scene / seq / pool / group names)
Phase 4 — ISA-aware completions (coming)
- Mnemonic completions from the loaded ISA plugin
- Operand type hints after a mnemonic
- Register name completions in pool bodies
- Hover documentation for mnemonics
Phase 5 — Inline diagnostics (coming)
- Runs
flow_validate on save and shows errors/warnings as squiggles
Requirements
Phase 2 (syntax highlighting) has no runtime requirements — the extension works
immediately after install.
Phases 4–5 require the flow executable to be reachable. Configure it in
.vscode/settings.json:
{
"flow.executable": "./build/flow",
"flow.plugin": "./build/targets/plugins/toy/src/toy.dll"
}
Building the extension
cd tools/flow-vscode
npm install
npm run compile # TypeScript → out/
npm run package # Produces flow-language-support-X.Y.Z.vsix
Install from VSIX
Extensions panel → ⋯ → Install from VSIX → select the .vsix file
| |