Set up editor support
Goal: get syntax highlighting, diagnostics, hover, and go-to-definition in your editor.
VS Code
Section titled “VS Code”The vscode-bynk extension provides syntax highlighting plus live language
features backed by the bynkc-lsp language server.
1. Build the language server from the workspace root:
cargo build --release -p bynk-lspThis produces target/release/bynkc-lsp. Put it on your PATH, or point the
extension at it with the bynk.executablePath setting.
2. Build and install the extension from the vscode-bynk/ directory:
cd vscode-bynknpm installnpm run packagecode --install-extension bynk-vscode-*.vsixThe extension activates on .bynk files and on any workspace containing a
bynk.toml. You then get syntax highlighting, live diagnostics, hover with type
signatures, go-to-definition, and format-on-save (honouring
editor.formatOnSave).
Settings
Section titled “Settings”| Setting | Default | Purpose |
|---|---|---|
bynk.executablePath | bynkc-lsp | Path to the language-server binary. |
bynk.trace.server | off | Trace LSP traffic (off / messages / verbose) in the “Bynk LSP” output channel. |
Other editors
Section titled “Other editors”Any editor with a generic LSP client can use bynkc-lsp. Syntax highlighting is
also available through the tree-sitter-bynk
grammar.
Related
Section titled “Related”- Format your code with
bynk-fmt. - Reference:
bynk-lsp.