Blues - BSV language support
A VS Code extension for the Bluespec SystemVerilog language, powered by the Blues LSP server. Provides the following features:
- Syntax highlighting
- Go-to definition/find references
- Project-wide symbol search
- Diagnostic messages for syntax errors
- Symbol rename
- Folding ranges
Setup
Install the LSP server component
The LSP server component can be installed via Cargo:
cargo install blues-lsp
If cargo install
does not place the resulting blues
binary in a directory belonging to the system's PATH
, or you are installing manually from source, you can specify an absolute path for the blues
binary via configuration option blues-lsp.executablePath
.
Project setup
To correctly identify source files belonging to a project, Blues currently requires a blues-compdb.json
file to be present in a project. For most projects, consisting of a single bsc -u
invocation, this minimal example can be used as a template, placed under <PROJECT_ROOT>/blues-compdb.json
:
[
{
"directory": ".",
"command": "bsc -u <BSC ARGS>",
}
]
More info regarding project configuration here