Zena Language Support for Visual Studio Code
Language support for the Zena programming language in Visual Studio Code Desktop and vscode.dev.
Features
- Diagnostics: Type checking and syntax diagnostics powered by Zena's self-hosted WebAssembly compiler (
compiler.wasm).
- Linting & Quick Fixes: Inline
lint warnings with per-finding quick fixes, Fix All, and the Zena: Fix lint findings in file command.
- Navigation: Go to Definition across workspace modules and read-only bundled
zena:* standard library modules, plus document symbol outlines.
- Hover & Completions: Hover type signatures and doc comments, plus member, local, built-in, and keyword completions.
- Formatting: Whole-document formatting via
Format Document.
- Syntax Highlighting: TextMate grammars for
.zena source files and fenced zena blocks in Markdown.
Installation
From the VS Code Marketplace
Install Zena Language from the Extensions view in VS Code or via the CLI:
code --install-extension zena-lang.vscode-zena
From a Release VSIX
Download vscode-zena.vsix from zena-lang.dev/reference/releases or the latest GitHub Release and install it:
code --install-extension vscode-zena.vsix
Or open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P), run Extensions: Install from VSIX..., and select the downloaded .vsix file.
Development
- Open the
zena repository root in VS Code.
- Press F5 (Run → Start Debugging) and choose Run Zena Extension.
- VS Code runs the Wireit watch build and opens an Extension Development Host window with
vscode-zena loaded.
- To package and install locally from the repository root:
npm run install-ext -w vscode-zena
License
MIT
| |