Language tools
Complete capability index
The server speaks standard LSP over stdio. Features are derived from one in-memory document overlay, semantic model, include graph, and workspace index.
Editing and formatting
Section titled “Editing and formatting”| Tool | Protocol method | What it does |
|---|---|---|
| Document formatting | textDocument/formatting |
Formats the full buffer with project/editor settings |
| Range formatting | textDocument/rangeFormatting |
Expands a selected range to formatter items |
| On-type formatting | textDocument/onTypeFormatting |
Formats after newline and semicolon triggers |
| Format on save | textDocument/willSaveWaitUntil |
Returns save-time edits when explicitly enabled |
| Completion | textDocument/completion |
Completes symbols and context-aware constructs |
| Inline templates | textDocument/inlineCompletion |
Offers structural ghost text for blocks and declarations |
| Signature help | textDocument/signatureHelp |
Shows callable parameters at an argument position |
| Linked editing | textDocument/linkedEditingRange |
Keeps opening and closing labels synchronized |
| Selection ranges | textDocument/selectionRange |
Expands selection through syntax-tree boundaries |
Navigation and understanding
Section titled “Navigation and understanding”| Tool | Protocol method | What it does |
|---|---|---|
| Hover | textDocument/hover |
Shows symbol details and one-step macro expansion |
| Go to definition | textDocument/definition |
Resolves local, external, include, macro-define, and bind targets |
| Go to type | textDocument/typeDefinition |
Navigates from values and members to declared types |
| Find references | textDocument/references |
Finds local and workspace references |
| Document highlights | textDocument/documentHighlight |
Highlights reads/writes for the symbol at the cursor |
| Document symbols | textDocument/documentSymbol |
Returns the hierarchical outline |
| Workspace symbols | workspace/symbol |
Searches indexed design units and members |
| Document links | textDocument/documentLink |
Makes resolvable `include paths clickable |
| Folding ranges | textDocument/foldingRange |
Folds modules, classes, blocks, lists, and regions |
| Inlay hints | textDocument/inlayHint |
Annotates ordered connections and inferred context |
| Code lens | textDocument/codeLens |
Shows module instantiation counts and actions |
| Call hierarchy prepare | textDocument/prepareCallHierarchy |
Selects callable or instantiable hierarchy items |
| Incoming calls | callHierarchy/incomingCalls |
Finds callers or instantiators |
| Outgoing calls | callHierarchy/outgoingCalls |
Lists calls or instantiated units |
| Design hierarchy | lucisv/moduleHierarchy |
Returns the instance-oriented snapshot used by the VS Code hierarchy sidebar |
Diagnostics and code actions
Section titled “Diagnostics and code actions”| Tool | Protocol method | What it does |
|---|---|---|
| Pull diagnostics | textDocument/diagnostic |
Returns current parse and lint diagnostics for a buffer |
| Workspace diagnostics | workspace/diagnostic |
Streams diagnostics across indexed files |
| Published diagnostics | textDocument/publishDiagnostics |
Updates clients that use push diagnostics |
| Quick fixes | textDocument/codeAction |
Exposes safe lint fixes, bulk safe fixes, and port refactor offers |
| Resolve port action | codeAction/resolve |
Computes a selected port edit against current workspace state |
| Execute command | workspace/executeCommand |
Applies workspace-aware refactor actions |
Port edits are deferred when the client advertises code-action resolve support
for edit; other clients receive eager edits. Lint fixes remain eager. An
inapplicable or stale port action is rejected when resolved. Closed-file
file-scope definition and workspace-symbol locations use recorded index
positions; member locations and open buffers still use current text.
Inlay hints require the instantiated module to be in the active index scope. A missing hint can therefore be a scope limitation; use a filelist or workspace index scope when the defining module lives outside the default folder scope.
Refactoring
Section titled “Refactoring”| Tool | Protocol method | What it does |
|---|---|---|
| Prepare rename | textDocument/prepareRename |
Verifies the target and returns its editable range |
| Rename | textDocument/rename |
Renames local or workspace-resolved symbols |
| Port actions | code actions / commands | Adds, removes, and propagates module ports; expands a .* wildcard into the named connections it stands for (a port with no same-named signal in scope becomes .p() and is named in a warning) — lucisv.expandWildcard; converts a Verilog-2001 header to ANSI, each body declaration merged into the port it described (IEEE 1800 §23.2.2.2) with its comments carried along — lucisv.convertToAnsi |
| Instantiate module | inline completion / lucisv.instantiate |
Builds an instance from an indexed module interface, including in clients without ghost text |
| Apply workspace edit | workspace/applyEdit |
Delivers multi-file refactor changes to the client |
| Show definition | window/showDocument |
Opens a generated or resolved target after an action |
Semantic presentation
Section titled “Semantic presentation”| Tool | Protocol method | What it does |
|---|---|---|
| Semantic tokens | textDocument/semanticTokens/full |
Colors symbols by semantic role |
| Incremental semantic tokens | textDocument/semanticTokens/full/delta |
Sends compact token changes after edits |
| Range semantic tokens | textDocument/semanticTokens/range |
Colors only a requested viewport |
| Scope pairs | lucisv/scopePairs |
Custom block-pair data used for rainbow nesting |
Workspace lifecycle
Section titled “Workspace lifecycle”The server handles didOpen, incremental didChange, didSave, didClose, watched-file changes, configuration changes, cancellation, shutdown, and exit. It dynamically registers file watchers, emits work-done progress while building large indexes, coalesces code-lens refreshes, and promotes open-buffer overlays into the workspace without waiting for disk writes.