Language support for Ignis .ign files.
- Syntax highlighting generated from the
tree-sitter-ignis grammar: records, enums,
traits, namespaces,
externblocks, attributes and builtins (@name), atoms (:ok), template literals with${...}substitutions, char literals, hex/binary/underscore numbers, inlineasmand doc comments (///,//!,/** */). - Language server integration through
ignis lsp:- diagnostics, hover, go to definition, find references and rename
- completion (triggered on
.and:) - document symbols (workspace symbols when the server provides them)
- full-document formatting
- quick fixes (unused import removal)
- inlay hints
- semantic highlighting, including a
mutabletoken modifier
- Bracket matching, auto-closing pairs, doc-comment continuation on Enter, and
// regionfolding.
The language server ships with the Ignis compiler (ignisc.rs).
Install ignis and make sure it is on PATH, or point the extension at it (see below).
| Setting | Default | Description |
|---|---|---|
ignis.server.enable |
true |
Start the language server. |
ignis.server.path |
"" |
Path to the ignis executable. Falls back to IGNIS_LSP_PATH, then ignis on PATH. Supports ~ and ${workspaceFolder}. |
ignis.server.stdPath |
"" |
Standard library root, passed as ignis lsp --std-path <dir>. When empty, the server uses the project's ignis.toml or IGNIS_STD_PATH. |
ignis.server.extraArgs |
[] |
Extra arguments appended after ignis lsp. |
ignis.trace.server |
"off" |
Trace LSP traffic in the output channel (messages or verbose). |
Changing any ignis.server.* setting restarts the server.
Ignis: Restart Language ServerIgnis: Show Language Server Output
pnpm install
pnpm run build # typecheck + bundle to dist/extension.js
pnpm test # TextMate grammar snapshot tests (tests/snap)
pnpm run package # produce the .vsixAfter an intentional grammar change, review and refresh the snapshots with pnpm run test:update.