VS Code extension for Lisette
VSCode language support for Lisette.
Features
- Syntax highlighting
- Diagnostics
- Hover
- Completions
- Go-to-definition
- References
- Rename
- Signature help
- Formatting
- Document symbols
Installation
Install the Lisette binary:
cargo install lisette
lis version # -> lisette 0.1.0 (go 1.25.5)
Install the Lisette extension from the Visual Studio marketplace.
Development
Build the Lisette binary (just build from the repo root).
Prepare the extension:
cd editors/vscode
pnpm install
pnpm run compile
Open the editors/vscode dir in VSCode and press F5 to launch the Extension Development Host (EDH).
Create a test project. In the EDH, open the test project.
in the EDH's settings (Cmd+,), set lisette.serverPath to the absolute path of the debug binary, e.g. /path/to/lisette/target/release/lis
In the VSCode window open on the editors/vscode dir, press Shift+F5 to stop, then F5 to relaunch the EDH with LSP connected.
To iterate:
- Make your changes and run
just build to rebuild the binary
- In the VSCode window open on the
editors/vscode dir, press Shift+F5 to stop, then F5 to relaunch the EDH with LSP connected.
Publishing
To test locally without publishing:
pnpm run package
code --install-extension lisette-0.1.0.vsix
First time:
- Create a publisher at https://marketplace.visualstudio.com/manage
- Generate a Personal Access Token (PAT) from Azure DevOps
pnpm dlx @vscode/vsce login {publisher_name}
Updating:
- Bump
version in package.json and commit
pnpm run publish
| |