Language serverIn developmentBuild from source
Provide editor-neutral diagnostics, completion, hover, navigation, rename, formatting, and project intelligence.
codepot-lspOn this page
Codepot LSP
The Codepot language server is the editor-neutral Language Server Protocol adapter for Codepot Lang.
It uses the same package resolution, parser, semantic analysis, formatter, and diagnostics as the compiler and CLI.
Architecture
Current capabilities
- syntax and semantic highlighting;
- diagnostics for saved and unsaved files;
- module and imported-symbol completion;
- standard-library auto-import edits;
- field completion after member access;
- hover with project and std documentation;
- go to definition and references;
- safe project rename excluding std symbols;
- document and workspace symbols;
- typed function signature help;
- canonical formatting;
- folding and quick fixes.
Build
The CLI can also host the server:
Discovery order used by the VS Code extension
codepot.server.path;CODEPOT_LSP_PATH;- workspace
target/debugortarget/releasenative binary; - native
codepot-lsponPATH; - native
codepotCLI usinglsp --stdio; - a platform server bundled with the extension.
On Windows, discovery accepts native .exe files and avoids directly spawning pnpm command shims.
Distribution status
Source and build instructions are available now. Public binary-release links remain TBD until official distribution is prepared.