Visual Studio Code extension for working with the Noir programming language.
This extension helps developers write, understand, and improve Noir code by providing:
For Language Server Protocol support, we require nargo
v0.7.1+ to be in your PATH
. You can check this by running nargo --version
in your terminal and you can check for the lsp
command by running nargo --help
.
If you can't put nargo
in your PATH
, you can set an absolute path in the Nargo Path
setting.
nargo lsp
and communicate with it.nargo lsp
.lsp
command. This may be useful if Nargo is not within the PATH
of your editor."messages"
or "verbose"
will log LSP messages between the Client and Server. Useful for debugging.You can find a full list of changes at https://github.com/noir-lang/vscode-noir/blob/master/CHANGELOG.md
The project provides a few useful commands via npm scripts:
npm run package
- Builds the project and packages it into a .vsix
file which can be manually installed for testing.npm run esbuild
- Builds the project with esbuild to output out/extension.js
and out/extension.js.map
.npm run test-compile
- Check types with TypeScript. Useful since esbuild doesn't typecheck.npm run format
- Formats all the code in the repository.npm run check-format
- Checks the formatting in the repository.