This extension helps developers write, understand, and improve Noir code by providing:
Syntax highlighting
Compile errors and warnings on file save
Run tests via codelens above each test
Useful snippets for common code patterns
Auto-format on save
Requirements
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 Pathsetting.
Settings
Noir: Enable LSP(noir.enableLSP) - If checked, the extension will launch the Language Server via nargo lsp and communicate with it.
Noir: Nargo Flags(noir.nargoFlags) - Additional flags may be specified if you require them to be added when the extension calls nargo lsp.
Noir: Nargo Path(noir.nargoPath) - An absolute path to a Nargo binary with the lsp command. This may be useful if Nargo is not within the PATH of your editor.
Noir > Trace: Server(noir.trace.server) - Setting this to "messages" or "verbose" will log LSP messages between the Client and Server. Useful for debugging.