Syntax highlighting and language support for DAL (dist_agent_lang): keywords, types, LSP (diagnostics, hover, completion, go to definition, signature help).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
VS Code extension for DAL (dist_agent_lang): language registration for .dal files and LSP client that starts the DAL language server (dal lsp).
Features
Language: Registers dal for .dal files with syntax highlighting (TextMate grammar: keywords, types, strings, comments, attributes, operators). Grammar is synced from .vscode/extensions/dist-agent-lang/syntaxes/; that folder is the canonical source for syntax rules.
LSP: Starts the language server via dal lsp (diagnostics, hover, completion, go to definition, signature help). Requires the DAL CLI built with --features lsp.
Tasks: "Run DAL file" and "Check DAL file" (Run Task / Ctrl+Shift+B).
Node.js 18+ (for npm install when developing the extension).
Installation
From source (development)
Clone the repo and build DAL with LSP: cargo build --release --features lsp.
Install extension dependencies: cd vscode-dal && npm install.
In VS Code/Cursor: Run > Run Without Debugging (F5) from the vscode-dal folder to launch a new window with the extension loaded, or Extensions > ... > Install from VSIX if you package the extension.
Package as VSIX (optional)
cd vscode-dal
npm install -g @vscode/vsce
vsce package
# Install the generated .vsix via: Extensions > ... > Install from VSIX