Official IDE Support • Zero Node Build Step • Self-Hosted LSP 3.17 & DAP

VS Code Extension, veko lsp & F5 Source Debugger

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 (14 KB)Full Developer Tooling HTML Guide
Live Light-Mode VS Code Capture • Click Image to Zoom

Whitespace-Aware .vk Highlighting, CodeLens Bar & Live veko check / run Output

Default Light Modern
VS Code Veko Language Support — Light Mode .vk Highlighting, CodeLens & Output
Step 1 • Install Extension

Install from .vsix or Repository Source

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.

Step 2 • Workspace / User Settings

Configure settings.json & F5 launch.json

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": []
    }
  ]
}
LSP 3.17 Over JSON-RPC 2.0 Stdio

Built-In veko lsp Capabilities & Editor Commands

Opening any .vk file automatically spawns `veko lsp` over stdio — zero Node language server dependencies, zero background daemons left behind on exit.

CapabilityLSP MethodWhat Veko Provides
Live DiagnosticstextDocument/publishDiagnosticsLexer, two-pass Pratt parser, gradual/--strict-types, mut borrow rules, .secret firewall sinks, and veko.vk capability checks on open, change, and save.
Hover DocumentationtextDocument/hoverDisplays full function/struct signatures, capability annotations, and // doc comments for workspace symbols, 95 stdlib modules, and Veko builtins.
Go to DefinitiontextDocument/definitionJumps directly (F12) to top-level fn, struct, macro, and constant definitions in the active file or imported workspace/stdlib modules.
Context CompletiontextDocument/completionTriggered automatically on /, ., and \: completes module exports (sha/sha256), enum symbols (.ok, .tls, .fs), local bindings, and builtins.
Document OutlinetextDocument/documentSymbolPopulates Breadcrumbs, Outline view, and Ctrl+Shift+O symbol navigation for functions, structs, and constants.
Canonical FormattingtextDocument/formattingFormats buffers in place via veko fmt while strictly preserving Veko's [tight] vs [spaced] token semantics.
Quick-Fix ActionstextDocument/codeActionTurns compiler "did you mean ...?" typo diagnostics into 1-click lightbulb workspace edits (Ctrl+.).
CodeLens & Command Palette (Ctrl+Shift+P)

One-Click Execution, Docs, Doctests & Inspection

Every .vk file displays `Run (VM) | Run (Wasm) | Check | Docs | Doctest | Inspect` right at line 1 alongside 17 Command Palette actions.

VS Code CommandCLI EquivalentDescription
Veko: Run Current Fileveko 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 --dapStart interactive VS Code F5 source debugging with breakpoints, call stack, and <secret> redaction.
Veko: Run in Wasm 3.0 Sandboxveko run --wasm <file>Execute active .vk file inside vvm WebAssembly 3.0 capability sandbox.
Veko: Check Types & Secretsveko check [--strict-types]Run static gradual/strict types, disjoint mut loan, and .secret taint verification.
Veko: Open Visual Inspectorveko inspect --tokens ...Open the side-by-side Webview with 5 tabs (--tokens, --ast, --modules, --bytecode, --wasm).
Veko: Format Documentveko fmtFormat active buffer canonically with tab indentation and pipe alignment.
Veko: Show API Docs / Look Up Symbolveko doc <mod> [sym]Inspect extracted // signatures, doctests, and stdlib symbol docs right inside VS Code.
Veko: Run Doctestsveko doc --test <file>Compile and execute all fenced ```vk doctest blocks in the current module.
Veko: Export API Docs (JSON / Markdown)veko doc --json | --mdEmit machine-readable .api.json or .api.md documentation alongside the module.
Veko: Build HTML Documentationveko docsRegenerate the Light-Mode interactive HTML handbooks and code playgrounds.
Editor-Agnostic Stdio Server

Using veko lsp in Helix & Neovim

Any editor supporting Language Server Protocol 3.17 connects directly to `veko lsp`.

Helix (languages.toml)

# ~/.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

Neovim 0.10+ (init.lua)

-- ~/.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,
})
Interactive Side-by-Side Webview • Click `Inspect` CodeLens

Veko Visual Inspector: [tight] vs [spaced] Tokens, AST, Modules, VKO & Wasm

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
Zero-Config F5 Debugging • End-to-End .secret Redaction

F5 Source-Level DAP Debugger (`veko debug --dap`)

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.

VS Code F5 Source-Level DAP Debugger — Paused on Breakpoint with <secret> Redaction