Nodevisa for VSCode
Editor support for Nodevisa build projects.
The extension runs the language server in the nodevisa-build binary,
which must be installed independently.
Install either:
- the
nodevisa-build package, or
- the
nodevisa metapackage.
They can be installed:
- globally, with
pixi global, or
- locally, in a project's pixi environment,
such that it uses the same version of
nodevisa-build that the project uses.
Nodevisa's build files are TOML files,
but their highlighting is out of scope of this extension.
Install your preferred tool.
We recommend Tombi.
Finding the server
The extension runs the first of these that it finds:
- The
nodevisa.lsp.command setting.
pixi run --frozen nodevisa-build lsp.
nodevisa-build lsp.
nodevisa build lsp.
Settings
| Setting |
Default |
|
nodevisa.lsp.command |
[] |
The command that runs the language server. |
nodevisa.lsp.trace.server |
off |
messages or verbose logs what VSCode and the server send each other, in the output channel Nodevisa Language Server. |
nodevisa.pixi.path |
"" |
The pixi program, such as ~/.pixi/bin/pixi, if it is not on PATH. VSCode started from the Dock or a launcher may not have the PATH of a shell. |
nodevisa.pixi.environment |
"" |
The pixi environment with nodevisa-build, if not default. |
Changing the lsp.command or pixi settings restarts the server,
as does Nodevisa: Restart Language Server from the command palette.
| |