Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Ignis for Visual Studio Code

Language support for Ignis .ign files.

Features

  • Syntax highlighting generated from the tree-sitter-ignis grammar: records, enums, traits, namespaces, extern blocks, attributes and builtins (@name), atoms (:ok), template literals with ${...} substitutions, char literals, hex/binary/underscore numbers, inline asm and 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 mutable token modifier
  • Bracket matching, auto-closing pairs, doc-comment continuation on Enter, and // region folding.

Requirements

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).

Settings

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.

Commands

  • Ignis: Restart Language Server
  • Ignis: Show Language Server Output

Development

pnpm install
pnpm run build      # typecheck + bundle to dist/extension.js
pnpm test           # TextMate grammar snapshot tests (tests/snap)
pnpm run package    # produce the .vsix

After an intentional grammar change, review and refresh the snapshots with pnpm run test:update.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages