Every Veko SDK binary ships with a built-in JSON-RPC 2.0 Language Server (veko lsp), formatter (veko fmt), token/AST/bytecode inspector (veko inspect), and Debug Adapter Protocol server (veko debug --dap) — paired with a zero-dependency VS Code extension.

Download veko-lang-1.0.0.vsix above (no token required) and install via the VS Code CLI or Extensions -> "Install from VSIX...":
# Option A: Install packaged .vsix bundle
code --install-extension veko-lang-1.0.0.vsix
# Option B: Copy directly from a veko repo checkout (PowerShell)
Copy-Item -Recurse -Force .\editors\vscode "$env:USERPROFILE\.vscode\extensions\veko-lang"
# Option C: Symlink on Linux / macOS
ln -s "$(pwd)/editors/vscode" "$HOME/.vscode/extensions/veko-lang"Reload VS Code after manual copy/symlink via Ctrl+Shift+P -> Developer: Reload Window.
Point veko.executablePath at your veko binary (or leave "veko" if on PATH) and keep tab indentation aligned with veko fmt:
{
"veko.executablePath": "C:/path/to/veko.exe",
"veko.strictTypes": true,
"[veko]": {
"editor.formatOnSave": true,
"editor.insertSpaces": false,
"editor.tabSize": 4
}
}Optional .vscode/launch.json (pressing F5 on any .vk file also works with zero config):
{
"version": "0.2.0",
"configurations": [
{
"type": "veko",
"request": "launch",
"name": "Debug Current Veko File",
"program": "${file}",
"stopOnEntry": false,
"args": []
}
]
}Opening any .vk file automatically spawns `veko lsp` over stdio — zero Node language server dependencies, zero background daemons left behind on exit.
| Capability | LSP Method | What Veko Provides |
|---|---|---|
| Live Diagnostics | textDocument/publishDiagnostics | Lexer, two-pass Pratt parser, gradual/--strict-types, mut borrow rules, .secret firewall sinks, and veko.vk capability checks on open, change, and save. |
| Hover Documentation | textDocument/hover | Displays full function/struct signatures, capability annotations, and // doc comments for workspace symbols, 95 stdlib modules, and Veko builtins. |
| Go to Definition | textDocument/definition | Jumps directly (F12) to top-level fn, struct, macro, and constant definitions in the active file or imported workspace/stdlib modules. |
| Context Completion | textDocument/completion | Triggered automatically on /, ., and \: completes module exports (sha/sha256), enum symbols (.ok, .tls, .fs), local bindings, and builtins. |
| Document Outline | textDocument/documentSymbol | Populates Breadcrumbs, Outline view, and Ctrl+Shift+O symbol navigation for functions, structs, and constants. |
| Canonical Formatting | textDocument/formatting | Formats buffers in place via veko fmt while strictly preserving Veko's [tight] vs [spaced] token semantics. |
| Quick-Fix Actions | textDocument/codeAction | Turns compiler "did you mean ...?" typo diagnostics into 1-click lightbulb workspace edits (Ctrl+.). |
Every .vk file displays `Run (VM) | Run (Wasm) | Check | Docs | Doctest | Inspect` right at line 1 alongside 17 Command Palette actions.
| VS Code Command | CLI Equivalent | Description |
|---|---|---|
| Veko: Run Current File | veko run <file> | Execute active .vk file on Track A (64-bit VKO VM) in the Veko Output channel. |
| Veko: Debug Current File (F5) | veko debug --dap | Start interactive VS Code F5 source debugging with breakpoints, call stack, and <secret> redaction. |
| Veko: Run in Wasm 3.0 Sandbox | veko run --wasm <file> | Execute active .vk file inside vvm WebAssembly 3.0 capability sandbox. |
| Veko: Check Types & Secrets | veko check [--strict-types] | Run static gradual/strict types, disjoint mut loan, and .secret taint verification. |
| Veko: Open Visual Inspector | veko inspect --tokens ... | Open the side-by-side Webview with 5 tabs (--tokens, --ast, --modules, --bytecode, --wasm). |
| Veko: Format Document | veko fmt | Format active buffer canonically with tab indentation and pipe alignment. |
| Veko: Show API Docs / Look Up Symbol | veko doc <mod> [sym] | Inspect extracted // signatures, doctests, and stdlib symbol docs right inside VS Code. |
| Veko: Run Doctests | veko doc --test <file> | Compile and execute all fenced ```vk doctest blocks in the current module. |
| Veko: Export API Docs (JSON / Markdown) | veko doc --json | --md | Emit machine-readable .api.json or .api.md documentation alongside the module. |
| Veko: Build HTML Documentation | veko docs | Regenerate the Light-Mode interactive HTML handbooks and code playgrounds. |
Any editor supporting Language Server Protocol 3.17 connects directly to `veko lsp`.
# ~/.config/helix/languages.toml
[language-server.veko-lsp]
command = "veko"
args = ["lsp"]
[[language]]
name = "veko"
scope = "source.veko"
file-types = ["vk"]
comment-token = "//"
indent = { tab-width = 4, unit = "\t" }
language-servers = ["veko-lsp"]
auto-format = true-- ~/.config/nvim/init.lua (Neovim 0.10+ built-in vim.lsp.start)
vim.filetype.add({ extension = { vk = "veko" } })
vim.api.nvim_create_autocmd("FileType", {
pattern = "veko",
callback = function(ev)
vim.lsp.start({
name = "veko-lsp",
cmd = { "veko", "lsp" },
root_dir = vim.fs.dirname(
vim.fs.find({ "veko.vk", ".git" }, { upward = true })[1] or ev.file
),
})
end,
})Click `Inspect` at the top of any .vk file (or run `Veko: Open Visual Inspector`) to open a live side-by-side panel with 5 switchable compiler views, instant substring filtering, click-to-jump from any token row directly to its `line:col`, and automatic refresh on every file save.
![Veko Visual Inspector Side Panel — [tight] vs [spaced] Token Badges](/assets/screenshots/vscode_02_visual_inspector_light.png)
Set breakpoints in the gutter and press F5: Veko's built-in Debug Adapter Protocol server steps across 64-bit VKO frames, inspects nested structs, maps, and byte slabs, and automatically redacts every `secret` value as `<secret>` (notice `api_tok = <secret>` in Locals below) so credentials never leak into debug views or screen shares.
