This VS Code extension is part of the parsing workspace. It wraps leekscript-lsp and provides the editor UI (syntax, settings, commands, code lens).
- General contributing: See the root CONTRIBUTING.md and cursor.md.
- Where to edit what: See ARCHITECTURE.md.
From the repository root you can build the LSP and run tests; from the leekscript-vscode folder you build and run the extension:
# Build the extension (from leekscript-code/)
npm install && npm run compile && npx vsce packagePackaging must include node_modules (do not pass vsce --no-dependencies, and do not add node_modules to .vscodeignore). Otherwise activation fails with Cannot find module 'vscode-languageclient/node'.
- F5 in VS Code (with
leekscript-codeas the opened folder) launches the Development Host with the extension loaded. - Set
leekscript.server.pathto the path of your localleekscript-lspbinary (e.g.../target/debug/leekscript-lspor an absolute path) to use the in-repo server.
When changing LSP behaviour (diagnostics, hover, go-to-definition, etc.), that code lives in leekscript-lsp (Rust), not in this extension. This repo only configures and launches the client.