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 |
| Expand wildcard | code action / lucisv.expandWildcard |
Expands .* in declaration order; a port with no same-named signal becomes .p() and is named in a warning |
| Convert ports to ANSI | code action / lucisv.convertToAnsi |
Merges a legacy header with its body port declarations, preserving comments and attributes |
| Organize imports | code action (source.organizeImports) / command |
Removes the import pkg::*; lines nothing in the scope reaches through, merges exact duplicates and sorts the run at the top of a module, package or class; refuses rather than guesses wherever a macro, a conditional directive, an unknown package or a base class in another file could hide a use — lucisv.organizeImports |
| Extract module | code action (refactor.extract) / command |
Select whole module items and name the module: ports and parameters inferred from what the selection reads and drives, imports carried across, the items moved byte for byte, the replacing instantiation rendered from the new module’s own text; a new file where the editor can create one, below the source module otherwise. Refuses with a sentence wherever a direction cannot be known — lucisv.extractModule |
| Inline module | code action (refactor.inline) / lucisv.inlineModule |
Copies a separate-file module body into the selected instance site, substitutes named connections and parameter values, and renames internal identifiers on collision |
| 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 |
Inline-module accepts simple named connections to names or literals; it
refuses .*, positional/expression or unconnected ports, output-to-literal
connections, unsupported port types, generate, initial/final and
macro/directive bodies. A hierarchical use found in its inputs also refuses
the action. There is a known source-selection gap for uses through an
intermediate module: a bench referencing wrap.u_S.x can be omitted when
inlining S. Review those uses before applying the edit.
The VS Code hierarchy also supports Star as DUT, Unstar DUT and
Clear DUTs. Each DUT gets children and parents sections, followed by Other
Modules. lucisv.hierarchy.duts unions team-configured names with workspace
stars; configured names are locked in the menu. This view consumes the
unchanged lucisv/moduleHierarchy snapshot; it adds no server protocol.
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.