VS Code and LSP
The official Kelvra Developer Tools extension pairs language syntax and
snippets with the kelvra-lsp server.
Install from the Marketplace
Section titled “Install from the Marketplace”Install the extension from the Visual Studio Marketplace, or search for Kelvra Developer Tools in VS Code’s Extensions view.
Platform-specific packages for Linux x64, Apple Silicon macOS, and Windows x64 include a tested language server. The extension does not download executables at activation time and does not collect telemetry.
Editor features
Section titled “Editor features”The shipped extension and language server provide:
- syntax highlighting, snippets, bracket/comment behavior, and a
.kelfile icon - diagnostics, completion, and hover information
- go to definition, references, rename, and workspace symbols
- document formatting and semantic highlighting
- import-aware navigation and package API documentation
For source declarations, a contiguous // comment group or /* ... */ comment
immediately above a declaration appears when hovering its references. A blank
line detaches the comment.
Package package.api.kel files also drive hover documentation from @doc(...),
navigation to opaque package types, and readable imported signatures.
Server discovery
Section titled “Server discovery”Normally, the bundled server starts automatically. For source checkouts and generic development VSIX files, discovery checks these locations in order:
- the explicit
kelvra.serverPathsetting - the server bundled with the extension
- an installed Kelvra runtime selected with
kelvra.runtimePath - the active project’s build directory
- each workspace folder’s build directory
kelvra-lsponPATH
Relative settings resolve from the relevant workspace folder. An invalid explicit override is reported instead of being silently ignored.
Commands and troubleshooting
Section titled “Commands and troubleshooting”Open the Command Palette and run:
- Kelvra: Show Language Server Status to see the executable, working directory, server version, tooling protocol, and current state
- Kelvra: Open Language Server Log to inspect every discovery candidate and rejection
- Kelvra: Select Language Server to validate and save an executable override
- Kelvra: Restart Language Server after rebuilding or changing configuration
- Kelvra: Install Project Dependencies to run package installation with explicit consent and visible progress
If a relocated CMake build is selected, its cached source path may be invalid.
Remove that dedicated build directory, configure it again from the current
checkout, rebuild kelvra-lsp, and restart the server. Repeated server crashes are
bounded and remain visible instead of causing an endless restart loop.
Extension development
Section titled “Extension development”From the repository root:
npm --prefix tooling/vscode-kelvra cinpm --prefix tooling/vscode-kelvra run compile./build.shUse the repository’s Kelvra: Extension Development Host launch configuration. It opens an isolated development host with a development-only server path and does not alter personal VS Code settings.
npm --prefix tooling/vscode-kelvra run checknpm --prefix tooling/vscode-kelvra run test:extension