Files
lucisv/editors/vscode/README.md
T
Guoliang ChenandClaude Mythos 5.2 a479faf029 Round 11: Windows UNC file URIs and editor polish
uri.rs: pure-string Posix/Windows flavours; UNC shares read and written as
file://server/share/..., verbatim paths seen through, device and
unspellable hosts refused; Posix identical to trunk except backslash
(%5C) and query/fragment stripping. Windows is compile- and link-checked
only.
Editors: mcp.js finds a directory-qualified path without .exe on Windows;
hierarchyView.js reports failed actions and disposes its listeners;
README and scopeDepth description corrections.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
2026-11-26 20:04:07 -08:00

987 lines
56 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
<p align="center">
<img src="https://git.luci.ooo/lucio/lucisv/raw/branch/master/editors/vscode/images/icon.png" width="128" height="128" alt="lucisv waveform icon">
</p>
<h1 align="center">lucisv for VS Code</h1>
<p align="center">
Fast, coherent Verilog and SystemVerilog tooling—from the first keystroke to a workspace-wide refactor.
</p>
<p align="center">
<img alt="Verilog 2001" src="https://img.shields.io/badge/Verilog-2001-38E8C5?style=flat-square&labelColor=07111F">
<img alt="SystemVerilog" src="https://img.shields.io/badge/SystemVerilog-supported-5BC0FF?style=flat-square&labelColor=07111F">
<img alt="LSP 3.18" src="https://img.shields.io/badge/LSP-3.18-A98BFF?style=flat-square&labelColor=07111F">
<img alt="Rust powered" src="https://img.shields.io/badge/core-Rust-FFB45B?style=flat-square&labelColor=07111F">
<img alt="MIT licensed" src="https://img.shields.io/badge/license-MIT-FF6F91?style=flat-square&labelColor=07111F">
</p>
lucisv brings formatting, live diagnostics, syntax and semantic highlighting,
code navigation, design hierarchy, snippets, completion, and safe refactoring
to `.v`, `.vh`, `.sv`, and `.svh` files. The extension and its bundled
language server are two halves of one toolchain, backed by the same Rust parser,
formatter, linter, semantic model, and workspace index.
![lucisv feature map](https://git.luci.ooo/lucio/lucisv/raw/branch/master/editors/vscode/images/feature-map.png)
## Install
Install **lucisv — Verilog/SystemVerilog** from the VS Code Extensions view,
then open a Verilog or SystemVerilog file. There is no separate server or CLI
setup.
The current release is **0.66.0**. Its platform packages include
`lucisv-server`, the `lucisv` command-line tool and `lucisv-mcp` (see
[Agents (MCP)](#agents-mcp)):
| Package target | Machines |
|---|---|
| `darwin-arm64` | Apple Silicon macOS |
| `darwin-x64` | Intel macOS |
| `linux-x64` | x64 Linux, statically linked |
| `linux-arm64` | Arm64 Linux, statically linked |
| `win32-x64` | x64 Windows |
| `all` | All five of the above in one package, chosen when it starts |
| *(no suffix)* | Universal fallback for any other platform — carries no binaries and runs `lucisv-server` from `PATH` |
If you install directly from the
[0.10.2 release](https://git.luci.ooo/lucio/lucisv/releases/tag/v0.10.2),
choose the `.vsix` whose suffix matches your machine. VS Code normally chooses
the matching Marketplace target automatically.
Take the `all` package when the machine is not known in advance — a mixed fleet,
one file on an internal mirror, or Alpine, which VS Code never offers a Linux
package to even though the statically linked Linux binaries run there. It costs
a larger download (all five platforms' binaries instead of one) and nothing else. Inside a platform
package the binaries sit at `bin/lucisv-server`, `bin/lucisv` and
`bin/lucisv-mcp`; inside the
`all` package they sit one level deeper, under `bin/<platform>-<arch>/`. Either
way the extension finds them and makes them executable on first activation.
## Start using it
Most features work as soon as a supported file opens:
- Open the **lucisv** Activity Bar icon for an instance-oriented design tree.
Every level starts collapsed; its fixed search field fuzzy-matches module and
instance names in memory, and click or the instance context menu navigates.
- Right-click the module you actually work on and choose **Star as DUT**. The
pane splits into three collapsible sections — the DUT with its children, the
DUT's parents (an upward tree through everything that instantiates it, which
is usually the testbench), and every other module — including whatever the
bench held beside the DUT, which that last section re-roots rather than hide.
A second DUT adds two more sections. **Unstar DUT** from the same menu, or
**Clear DUTs** from the pane's title bar, puts the plain tree back.
- Hover a symbol, press `F12`, find references, search workspace symbols, or
open the call/type hierarchy using VS Code's standard commands.
- Type a module name at module-item scope to insert a complete instance. Inside
its port list, signature help and inlay hints keep ordered connections clear.
- Use the lightbulb for safe lint fixes and port refactors. Rename is
workspace-aware and verifies its target before opening the rename box.
- Type `if (`, `case (`, `begin`, `fork`, `generate`, or `module` at the end of
a line to get structural ghost text. Press `Tab` to accept it; use `Alt+]` to
cycle when several shapes fit. `always_ff @(` offers a clock-and-reset block
first and the clock-only one second.
- Press `Enter` after a `begin` that has no `end` yet and the `end` is written
on the line below, lined up with its statement, with the cursor on the
indented line in between.
- Start typing a keyword (`alw`, `endm`) and the rest of it appears as grey
text; `Tab` accepts it.
- After the `.` of a port connection the ports still to connect come first;
accepting one writes `.name()` with the cursor inside, pre-filled with a
same-named signal when there is one.
- Run **Format Document** or **Format Selection** through the standard VS Code
commands.
To format whenever VS Code saves a file:
```jsonc
{
"[verilog]": { "editor.formatOnSave": true },
"[systemverilog]": { "editor.formatOnSave": true }
}
```
Leave `lucisv.formatOnSave` off in VS Code. That setting is the language
server's protocol-level fallback for editors without native format-on-save;
enabling both paths formats twice.
## Everything included
### Formatting and editing
| Feature | What you get |
|---|---|
| Document formatting | Width-aware, deterministic formatting with inferred alignment for ports, connections, and parameter tables |
| Range and multi-range formatting | Formats selected constructs while leaving the rest of the file byte-for-byte unchanged |
| On-type formatting | Reindents after a newline and formats a completed statement after `;` when `editor.formatOnType` is enabled |
| Auto `end` | `Enter` after an unclosed `begin` writes its `end` below the cursor at the statement's indentation, with or without `editor.formatOnType` (`lucisv.autoEnd`) |
| Keyword ghosts | A typed prefix of a keyword shows the rest as grey text that follows the popup's selection (`lucisv.inlineKeywords`) |
| Format on save | Works through VS Code's native format-on-save flow; a separate LSP save hook is available for other editors |
| Safe output | Token equivalence, comment preservation, convergence checks, and all-or-nothing fallback protect source code |
| Format fences | `// verilog_format: off` / `on` preserves deliberately hand-formatted regions |
| Inline templates | Context-sensitive ghost text completes blocks, cases, processes, generate regions, and modules |
| Smart completion | Context-aware statement/declaration templates plus complete module-instantiation snippets from the workspace index. Names from the current file rank first; after a connection's `.` the unconnected ports come first, connected ones follow marked `connected`, and accepting one writes `.name()` |
| Static snippets | Dialect-specific file-level templates for modules, interfaces, packages, classes, functions, tasks, FSMs, assertions, testbenches, guards, and generate loops |
| Signature help | Names active ports or parameters in named and ordered instantiations |
| Linked editing | Keeps opening and closing labels synchronized for modules, classes, functions, tasks, blocks, forks, and other named scopes |
| Expand selection | Grows from token → statement → scope → item → file along syntax boundaries |
### Diagnostics and fixes
| Feature | What you get |
|---|---|
| Live parse diagnostics | Error-tolerant parsing keeps useful feedback flowing while code is half typed |
| Quiet while you connect a port | The connection being typed (`.po(` in an instance's port or `#(` list) is not flagged while you type it, only after a short pause, or once you edit elsewhere or save; the rest of the file colours and lints as if it were finished |
| Live lint diagnostics | The same lint registry as `lucisv check`, delivered through push or modern pull diagnostics |
| Severity per rule | Every rule is `error`, `warning` or `style`, and the squiggle is painted red, yellow or blue to match |
| Per-rule toggles | One setting per rule and one per severity class, all under `lucisv.lint.*`; changing any of them re-checks every open file immediately |
| Safe quick fixes | One lightbulb action per safe lint fix, plus **Fix all lucisv auto-fixable problems** |
| Waivers | `lucisv:` and Verible-compatible `verilog_lint:` line/range waivers are understood |
| Scope feedback | An unmatched `begin`/`end` or `fork`/`join` is colored as an error until its pair exists |
| Workspace diagnostics | Pull-capable clients can request diagnostics across open workspace buffers |
### Navigation and code understanding
| Feature | What you get |
|---|---|
| Hover | Declaration kind and source snippet, macro bodies, and one-step macro argument expansion |
| Go to definition | Local and cross-file symbols, macros, modules, packages, exported members, ports, and resolved `` `include`` targets |
| Go to type definition | Values, handles, instances, interfaces, and aliases navigate to the declared type |
| Find references | Local symbols stay local; indexed design units, package members, and ports resolve across files |
| Full-line references view | **Find All References** (`Shift+Alt+F12`) opens lucisv's own References view in the lucisv sidebar: every reference's whole source line with the identifier highlighted, grouped by file (current file first), the declaration marked, a click selects the reference. VS Code's built-in view cuts each line to a few characters before the match; `lucisv.references.fullLineView` turns the takeover off. Also **lucisv: Find All References (full lines)** in the editor context menu |
| Document highlights | Highlights symbol occurrences or the matching opener/closer under the cursor |
| Document and workspace symbols | Hierarchical outline plus indexed symbol search across the design |
| Include links | Resolvable `` `include`` paths become clickable using local and filelist `+incdir+` search rules |
| Folding | Modules, classes, blocks, regions, and multiline comments fold on syntax-aware boundaries; every branch of an `` `ifdef``/`` `ifndef`` region folds on its own, from its directive to the line before the next `` `elsif``/`` `else``/`` `endif``, which stays visible |
| Sticky scroll | The first line of every block you are inside — the module, the `always`, the `case`, the case item, the `if`, the `` `ifdef``/`` `else`` branch, the module instance (its type line, and its `) u_name (` line once you are in its connections) — stays pinned at the top of the editor, up to ten lines deep |
| Inlay hints | Adds port and parameter names to ordered instantiations without guessing at ambiguous sites |
| Code lenses | Shows the workspace-wide instantiation count above every module/interface; click to jump to a site |
| Call hierarchy | Incoming calls answer “who instantiates this?”; outgoing calls answer “what does this instantiate?” |
| Design hierarchy sidebar | Alphabetical instance paths from every top-level module, collapsed until you open them, in-memory fuzzy module/instance search, exact instance/definition jumps, path copy, bookmark highlighting, and split-right opening |
| Current-file path | The pane lights the rows that lead to the file you are editing: every instance of the module it declares in a bright orange with a solid bar at its edge, each row above one shade dimmer with a narrower bar, down to a faint floor — in the plain tree, in every DUT section, and on a closed section's header. Switching files repaints only the rows that changed. The shades are the `lucisv.hierarchyCurrent`, `lucisv.hierarchyParent1`–`3`, `lucisv.hierarchyAncestor` and `lucisv.hierarchyCurrentBar` theme colours; `lucisv.hierarchy.highlightCurrent` turns it off |
| DUT sections | Star a module as DUT and the pane splits into its own subtree, an upward tree of everything that instantiates it, and every module in neither — two sections per DUT plus one. Stars are remembered per workspace; `lucisv.hierarchy.duts` is the checked-in list a team shares |
| Type hierarchy | Walks class `extends` relationships to supertypes and workspace subtypes |
### Highlighting and presentation
| Feature | What you get |
|---|---|
| Semantic highlighting | Classifies declarations and uses by role; viewport and delta responses keep large files responsive |
| TextMate highlighting | Covers keywords, comments, strings, literals, system tasks, directives, and macros before the server starts and inside previews/hover cards |
| Rainbow scopes | Six theme-aware colors distinguish nested `begin`/`end` and `fork`/`join` pairs; unmatched scopes use a seventh error color |
| Matching scopes | Putting the cursor on an opener highlights the exact matching closer |
| Comment keywords | `TODO`, `FIXME`, `FIX_ME` and `TBD` inside `//` and `/* */` comments are painted bold in the `lucisv.commentKeyword` theme colour — whole words only, never in strings or code. Add your own words with `lucisv.commentKeywords.custom` (matched literally, as whole words); `lucisv.commentKeywords.builtIn` turns the four off and `lucisv.commentKeywords.caseSensitive` turns case-insensitive matching on. Only the lines on screen (plus a margin) are searched for the words; an edit above the screen re-reads the lines from the edit down to it, and a file too large for VS Code to tokenize (over 20 MiB or 300 000 lines) is not painted |
### Refactoring
| Feature | What you get |
|---|---|
| Rename | Verified local or cross-file symbol renames using the same resolution as navigation |
| Add port | Adds a port to a module/interface and updates affected instantiations |
| Remove port | Removes a declaration and matching connections across the workspace |
| Propagate ports | Carries a port through module boundaries with one multi-file edit |
| File/folder rename support | Rewrites every resolved `` `include`` affected by a move and warns instead of guessing when no safe spelling exists |
| Undo-friendly edits | Workspace refactors are delivered as labelled edits so the editor can apply or reject them as one operation |
### Workspace intelligence
| Feature | What you get |
|---|---|
| Project indexing | Indexes a configured EDA filelist when you have one; otherwise the folders your open files live in, widening as you work (`lucisv.index.scope`) — or every workspace folder with `"workspace"` |
| Filelist support | Nested `-f`, `+incdir+`, `+define+`, comments, environment variables, and relative paths are understood |
| Matching file discovery | Workspace walks honor `.gitignore`, supported file extensions, and `lucisv.toml`/editor excludes |
| Open-buffer overlay | Unsaved files and edits immediately override disk content in navigation and analysis |
| Incremental sync | Keystrokes send only changed ranges, not the full buffer |
| File and folder watching | Create, change, rename, delete, and multi-root folder updates automatically refresh the index |
| Index progress | Rescans show an **Indexing Verilog workspace** bar counting `n/total` through the files, with a per-file log in the output channel and a closing count of indexed, cached, and skipped files |
| Responsive requests | Cancellation drops stale queued work; semantic token deltas and range responses minimize repeated data |
| Live configuration | Project and editor configuration changes take effect without restarting the server |
### Agents (MCP)
The platform packages carry a third binary, `lucisv-mcp`: lucisv as a Model
Context Protocol server, so a coding agent can ask for the instance
hierarchy, where a name is declared and used, a file's or a module's
outline, one block's source or the lint verdict instead of reading whole
files — and make the edits a file write cannot make safely: a design-wide
rename, adding or removing a port in every instantiation, a single-item
edit, formatting with the safe lint fixes. Nine tools, short answers; every
edit is verified and written whole, with no dry run.
| Feature | What you get |
|---|---|
| VS Code agent mode | On VS Code 1.101+, one `lucisv (<folder>)` server per workspace folder, listed under **MCP: List Servers**; trust it once and agent mode can call its tools (the full list is in the Agents guide). Folders added or removed update the list |
| Other agents | **lucisv: Copy MCP server config** copies the snippet for Claude Code (`.mcp.json`), Cursor (`.cursor/mcp.json`) or VS Code (`.vscode/mcp.json`), naming the binary this extension runs |
| Read-only mode | Set `lucisv.mcp.mode` to `read-only` and the server is `lucisv read-only (<folder>)`, started with `--read-only`: the five read tools only (`hierarchy`, `find`, `outline`, `read`, `check`), and no file in the workspace is ever written. The copied config follows the setting (server key `lucisv-ro`, so both can sit in one file) |
| No binary, no error | With the universal package and no `lucisv-mcp` on `PATH`, one line in the lucisv output channel says so; nothing else changes |
The server reads files from disk, never unsaved buffers — save before asking
an agent about a file. The extension starts it as `lucisv-mcp --root <folder>
--index-cache <workspace storage>` (plus `--read-only` in read-only mode). On VS Code older than 1.101 nothing is
registered (the engine requirement stays `^1.82.0`; `vsce` accepts the
contribution point there). The tool list and the snippets are in the
[Agents (MCP) guide](https://git.luci.ooo/lucio/lucisv/src/branch/master/docs/site/src/content/docs/guides/agents.md).
![lucisv extension architecture](https://git.luci.ooo/lucio/lucisv/raw/branch/master/editors/vscode/images/architecture.png)
## Large workspaces
Shipped in **0.11.0**. The [changelog](https://git.luci.ooo/lucio/lucisv/src/branch/master/editors/vscode/CHANGELOG.md) tracks the details under
**Unreleased**.
A workarea with tens of thousands of files used to pay for a full scan on every
save. That is replaced by a chain of narrower answers:
- **The scan follows your open files.** `lucisv.index.scope` defaults to
`folder`: the index covers the folders your open buffers live in and
everything under them, and opening a file elsewhere widens it. `scopeDepth`
starts the climb one or more folders higher, so a file in `rtl/` can also
index `include/` beside it.
- **Generated netlists stay out of the scan.** `lucisv.index.maxFileSize` caps
a walked file at 1 MiB by default — bigger is almost always machine output
that costs minutes and answers nothing. A file you actually open is always
indexed in full, whatever its size.
- **The progress bar counts.** The **Indexing Verilog workspace** bar names the
file it is on with a real `n/total` and a real percentage instead of an
indeterminate spinner.
- **The output channel says what happened.** With `lucisv.index.logFiles` on,
every file is named as it is indexed, restored from cache, or skipped by the
size cap, and the bar's closing message counts all three —
`860 files indexed, 858 from cache, 2 skipped`. That is what answers "why is
this symbol missing" and "why was that scan slow" without a debugger.
- **A save costs one file.** Saving a file the index already holds replaces
just that file's contribution, with no progress bar and no rescan — measured
at ~45× faster than the whole rebuild it replaces (860-file workspace, debug build — release is faster still).
Instantiation counts, call hierarchy and subtype lists became table lookups
in the same change, so a code lens over a whole file is a fraction of a
millisecond.
- **The index survives a reopen.** `lucisv.index.persist` (on by default)
writes what indexing each file found to a per-workspace store, keyed by that
file's exact contents. Reopening the workspace — or reopening it after a
crash halfway through the first scan — resumes from those records instead of
parsing everything again; a stale or damaged record costs a re-parse and can
never change an answer. `lucisv.index.cachePath` moves the store somewhere
you choose, for example to share one between checkouts of the same tree.
- **A 100 MB netlist opens instantly.** Above
`lucisv.largeFile.threshold` (4 MiB) an opened file is line-counted and
nothing else: never parsed, never analyzed, never indexed. What you keep is
syntax coloring of the screenful you are looking at, painted a window at a
time, plus go-to-definition and find-references within that one file by text
scan. Everything else — diagnostics, formatting, symbols, folding, rename,
hover, completion — answers nothing for such a file, and formatting says so
rather than failing quietly. (VS Code never hands an extension a file over
50 MB at all, so in VS Code this path serves everything from the threshold up
to that limit; the 100 MB case belongs to editors without that rule.)
The honest trade: with the folder scope, cross-file answers are **scope
relative**. A symbol in a folder the scope has not reached yet does not exist
as far as the server is concerned, so go-to-definition, workspace symbol
search, find references, the hierarchies and workspace rename all answer within
the scope you have opened your way into. Point `lucisv.filelist` at your EDA
filelist and the whole project is in scope from the first keystroke; set
`"lucisv.index.scope": "workspace"` and the whole-workspace walk every release
up to 0.10.2 did is back, unchanged.
## Snippet library
Type a prefix and choose the snippet; `Tab` walks its placeholders. Static
snippets work before the language server starts, while statement/block
templates come from the server so they only appear where the construct is
valid.
| Verilog prefixes | Template |
|---|---|
| `module` | Module with ANSI ports |
| `function`, `task` | Verilog-2001 declarations |
| `genfor` | Generate loop with `genvar` and a named block |
| `tb` | Testbench with clock, reset, display, and finish |
| `guard` | Include guard derived from the file name |
| SystemVerilog prefixes | Template |
|---|---|
| `module`, `modulep` | Module, optionally with parameters |
| `uniquecase` | `unique case` with a default arm |
| `fsm` | Two-process enum-based state machine |
| `enum`, `struct` | Packed type declarations |
| `function`, `task` | Automatic declarations |
| `interface` | Interface with two modports |
| `package`, `class` | File-named package or class with constructor |
| `assertp` | Labelled concurrent assertion |
| `genfor`, `tb`, `guard` | Generate loop, testbench, or include guard |
Server-side templates add `if`, `if/else`, `else if`, `case`, `for`, `while`,
`always_ff`, `always_comb`, `always @(...)`, `initial`, and common
`logic`/`reg`/`wire`/`parameter` declarations at valid cursor positions.
## Settings
| Setting | Default | Purpose |
|---|---:|---|
| `lucisv.references.fullLineView` | `true` | `Shift+Alt+F12` in a Verilog/SystemVerilog editor opens lucisv's full-line References view instead of VS Code's, whose previews start a few characters before the match. `false` gives the key back to the built-in command; the context-menu entry works either way, and `Shift+F12` peek is never changed |
| `lucisv.rainbowBeginEnd` | `true` | Color nested block pairs and unmatched keywords; updates immediately |
| `lucisv.commentKeywords.builtIn` | `true` | Highlight `TODO`, `FIXME`, `FIX_ME` and `TBD` inside comments; updates immediately |
| `lucisv.commentKeywords.custom` | `[]` | More words to highlight inside comments, matched literally as whole words — up to 50, each 1–40 characters with no spaces; updates immediately |
| `lucisv.commentKeywords.caseSensitive` | `true` | `false` highlights `todo`/`Todo` too, for the built-ins and the custom words alike |
| `lucisv.inlineTemplates` | `true` | Show context-aware structural ghost text; requires `editor.inlineSuggest.enabled` |
| `lucisv.inlineKeywords` | `true` | Ghost the rest of a keyword while its first letters are typed; follows the popup's selected entry; requires `editor.inlineSuggest.enabled` |
| `lucisv.autoEnd` | `true` | Write the `end` when `Enter` is pressed after a `begin` that has none |
| `lucisv.inlineInstantiation` | `true` | Ghost the full instantiation (parameters and ports) once a module's name is typed exactly and followed by a space; requires `editor.inlineSuggest.enabled` |
| `lucisv.lineLength` | unset | Maximum formatter width, 40–400; built-in default is 100 |
| `lucisv.indent` | unset | Indent width, 1–8; falls back to the editor tab size, then 2 |
| `lucisv.format.style` | `lucisv` | A drop-down of layout presets — `lucisv`, `google`, `lowrisc`, `ansi`, `microsoft`, `nxp` — or `auto`, which keeps each file in the preset it is already closest to (remembered per document from its last full format, so on-type and selection formatting stay fast and keep the preset while the file has a syntax error). `auto` picks a layout for the configured indent and width and never infers them: set `lucisv.indent` (or the project's `indent`) to match the file first — a 4-space Allman file under `auto` at indent 2 comes out in the `lucisv` layout. A preset also sets the indent and line length, below `lucisv.indent`/`lucisv.lineLength`; `ansi`, `microsoft` and `nxp` are lucisv's guesses, not those organisations' rules. See the [style table](https://git.luci.ooo/lucio/lucisv/src/branch/master/README.md#named-styles) |
| `lucisv.format.begin` | unset | Override where a block's `begin` sits after its header (`same-line` or `own-line`), on top of the style; unset lets the style decide |
| `lucisv.format.else` | unset | Override where `else` sits after `end` (`same-line` or `own-line`) |
| `lucisv.format.elseAfterLabel` | unset | Override where `else` sits after a labelled `end : label` (`same-line` or `own-line`) |
| `lucisv.format.portLists` | unset | Override header parameter/port lists and named instance lists (`fit` or `one-per-line`) |
| `lucisv.format.listIndent` | unset | Override the indentation of broken header and instance lists (`block` or `wrap`) |
| `lucisv.format.alignment` | unset | Override column alignment of header parameters, ANSI ports, parameter declarations and named connections (`infer` or `always`) |
| `lucisv.format.connectionAlignMin` | unset | Minimum spaces before `(` on the widest row of an aligned connection or `#(...)` table (`0` gives `.long_port(sig)`, `1` gives `.long_port (sig)`) |
| `lucisv.format.uvmUtilsIndent` | `false` | Indent the `` `uvm_field_* `` macros between `` `uvm_*_utils_begin `` and `` _end `` one level; on changes the output of files that are already clean |
| `lucisv.exclude` | `[]` | Extra index exclusions added to the project's own patterns |
| `lucisv.filelist` | `""` | EDA `.f` filelist to index instead of walking the folder |
| `lucisv.hierarchy.duts` | `[]` | Modules the Hierarchy pane treats as DUTs, by name — the checked-in list a team shares. Each one adds two sections ahead of "Other modules"; a DUT from this setting is shown locked and can only be removed here |
| `lucisv.hierarchy.highlightCurrent` | `true` | Light the Hierarchy pane's rows leading to the active file, brightest on the file's own module and dimmer each level up |
| `lucisv.index.scope` | `folder` | Index the folders your open files live in, or every workspace folder with `workspace`; answers stay scope-relative until the scope reaches a folder |
| `lucisv.index.scopeDepth` | `2` | How many folders above an open file the `folder` scope starts from, never leaving its workspace folder; `2` lets a file in `hw/ip/aes/dv/tb/` index all of `hw/ip/aes/` (from `hw/ip/aes/rtl/` it reaches `hw/ip/`), and `0` is the file's own folder alone; with no workspace folder open it does not climb, but any value above `0` still reads the file's folder recursively, so use `0` for single files opened on their own |
| `lucisv.index.maxFileSize` | `1 MiB` | Largest walked file the index reads, in bytes; `0` removes the cap, and a file you open is always indexed in full |
| `lucisv.index.logFiles` | `true` | Name every indexed, cached, and cap-skipped file in the lucisv output channel |
| `lucisv.index.persist` | `true` | Remember what indexing each file found, so a reopen resumes instead of rescanning |
| `lucisv.index.cachePath` | `""` | Where that store lives; empty means the extension's own per-workspace storage folder |
| `lucisv.largeFile.threshold` | `4 MiB` | Size in bytes above which an opened file gets viewport-only highlighting and nothing else — no parsing, diagnostics, formatting, or indexing; `0` analyzes everything |
| `lucisv.lint.severity.error` | `true` | Run the rules for code that would very likely not compile; off silences the whole class |
| `lucisv.lint.severity.warning` | `true` | Run the rules for code that compiles and very likely does not mean what it says |
| `lucisv.lint.severity.style` | `true` | Run the rules for code that is correct and reads badly |
| `lucisv.lint.rules.<rule>` | `default` | One dropdown per rule — `default`, `on` or `off`. `default` is what the rule ships as, which the setting's own description names |
| `lucisv.lint.select` | `[]` | Power-user spelling of `lucisv check --select`: run exactly these rules, replacing the default set. A severity word (`error`, `warning`, `style`) stands for its whole class |
| `lucisv.lint.ignore` | `[]` | Power-user spelling of `--ignore`, and the off switch of last resort; takes a severity word too |
| `lucisv.lint.options` | `{}` | Per-rule options, as `{ "<rule>": { "<option>": value } }` — the editor's spelling of a `[lint.<rule>]` table in `lucisv.toml`. Each rule's own dropdown names the options it takes, and `lucisv check --rules-doc` prints every one with its kind and default. A bad entry is ignored and reported in the lucisv output channel, so one typo cannot switch the linter off |
| `lucisv.lint.waivers` | `[]` | External waiver files, absolute or relative to the first workspace folder — the editor's spelling of `lucisv check --waiver-file` and of `waivers` under `[lint]` in `lucisv.toml`, and added to whatever that table names. Verible's format: one `waive --rule=<rule> [--line=N|--line=N-M] [--location=<pattern>]` per line. A missing file or an unparsable directive is dropped and reported in the lucisv output channel. Unused external waivers are reported by `lucisv check` only |
| `lucisv.formatOnSave` | `false` | Protocol save hook for editors without native format-on-save; keep off in VS Code. Its indent comes from `lucisv.toml` or `lucisv.indent`, never from the editor tab size, which the protocol does not send on this path |
| `lucisv.serverPath` | bundled | Explicit server override for advanced use; an unchanged setting uses the bundled server |
| `lucisv.mcp.enabled` | `true` | Offer `lucisv-mcp` to VS Code's agent mode (1.101+), one server per workspace folder; `false` withdraws it without a reload |
| `lucisv.mcp.path` | `""` | A `lucisv-mcp` to use instead of the bundled one (empty: bundled, else `PATH`); also what **lucisv: Copy MCP server config** names |
| `lucisv.mcp.mode` | `"full"` | `"read-only"`: offer agent mode only the five read tools (`lucisv-mcp --read-only`, listed as `lucisv read-only (<folder>)`), without a reload; any other value is treated as read-only; also the mode **lucisv: Copy MCP server config** copies (key `lucisv-ro`) |
| `lucisv.verbose` | `false` | Print how long every operation took in the lucisv output channel — one `timing:` line per request, notification, scan, widen, buffer flush, and per request that had to wait behind a rescan. **Restarts the language server when changed**, because it is an argument the server is started with |
The six `lucisv.index.*` settings and `lucisv.largeFile.threshold` arrive with
the [large workspaces](#large-workspaces) work; the rest arrived with the
features they configure (the changelog names each). A checked-in `lucisv.toml`
outranks every `lucisv.format.*` override. The `lucisv.lint.*` settings are **generated from the rule registry**,
so a rule cannot ship without its toggle.
When several of them disagree, this is the order — each step may undo the one
above it:
1. what the rules themselves ship as (a project-wide rule needs a workspace);
2. a non-empty `lucisv.lint.select` replaces that set;
3. a severity switch that is off removes its whole class;
4. a per-rule dropdown set to `on` or `off` decides that one rule;
5. `lucisv.lint.ignore` removes, whatever anything else said.
`lucisv.lint.options` is not part of that ladder — it does not choose *which*
rules run, it configures the ones that do:
```json
"lucisv.lint.options": {
"line-length": { "length": 120 },
"typedef-structs-unions": { "allow_anonymous_nested": true },
"generate-label-prefix": { "prefix": ["g_", "gen_"] }
}
```
For an option, the precedence is **this setting, then the `lucisv.toml`, then
the rule's own default — key by key**, so a project can set two options and you
can override a third without losing the others. That is deliberately the
opposite order to the style settings below: formatting has a byte-exact
contract with CI that your editor must not break, while which findings *you*
are shown is yours to choose. Changing an option re-checks every open file
immediately, exactly as a toggle does.
A nearby `lucisv.toml` is the project source of truth and wins over editor
style settings. Each file discovers configuration upward, so one workspace may
contain projects with different formatting rules.
```toml
# lucisv.toml — every key is optional
line-length = 100
indent = 2
exclude = ["generated", "*_gen.sv"]
filelist = "rtl/files.f"
```
The configuration ladder is:
1. The nearest `lucisv.toml` / `.lucisv.toml` discovered for the file.
2. `lucisv.lineLength` and `lucisv.indent` editor settings.
3. The indent and width of the style the file resolves to (`[format] style`
in that `lucisv.toml`, else `lucisv.format.style`) — when one other than
`lucisv` or `auto` was chosen, this outranks the tab size below.
4. VS Code's tab size, for indentation only.
5. Built-in defaults: 100 columns and 2 spaces.
`lucisv.filelist` is an explicit editor override for index scope. Open buffers
are always layered over the chosen scope, even when a scratch file is not in
the filelist.
## Customize rainbow colors
Every nesting color is a proper VS Code theme color:
```jsonc
"workbench.colorCustomizations": {
"lucisv.rainbow1": "#FFD700",
"lucisv.rainbow2": "#DA70D6",
"lucisv.rainbow3": "#179FFF",
"lucisv.rainbow4": "#87D96B",
"lucisv.rainbow5": "#FF8C69",
"lucisv.rainbow6": "#4FD6D6",
"lucisv.rainbowUnmatched": "#FF1212"
}
```
The comment keywords are one more, `lucisv.commentKeyword` (bold, orange by
default):
```jsonc
"workbench.colorCustomizations": {
"lucisv.commentKeyword": "#FF9E3D"
}
```
## Release 0.66.0 highlights
Version 0.66.0 completes a round of eight editor features: no workspace
re-index on save, same-file actions and colours that do not wait for
indexing, `` `ifdef `` folding, formatter styles, a module view that marks
where you are, a Find References fix and comment keywords.
## Release 0.65.11 highlights
Version 0.65.11 answers hover, go-to-definition, the outline and folding for
names declared in the current file without waiting for the workspace index,
and puts the names a file can reach at the top of completion.
## Release 0.65.10 highlights
Version 0.65.10 colours a file the moment it opens instead of after the
workspace is indexed, then corrects cross-file names once when indexing
finishes.
## Release 0.65.9 highlights
Version 0.65.9 fixes the bundled MCP server answering from a file's old
contents after a same-size rewrite that restores its old modification time
on Linux; the editor features are unchanged.
## Release 0.65.8 highlights
Version 0.65.8 fixes Find All References (and definition, hover, rename)
answering "not found" when the cursor sits just after a name, keeps edits
typed during indexing in order, and removes a startup stall that could last
minutes on a large workspace.
## Release 0.65.7 highlights
Version 0.65.7 is 0.65.6 built for every platform (0.65.6 was never published:
it did not compile for Windows): saving is cheap on large projects, because
the language server updates only what an edit can reach.
## Release 0.65.6 highlights
Version 0.65.6 makes saving cheap on large projects: the language server
updates only what an edit can reach instead of re-resolving the whole index —
on OpenTitan a typical save drops from about 160 ms (twice) to a few
milliseconds.
## Release 0.65.5 highlights
Version 0.65.5 adds named formatting styles — `google`, `lowrisc`, `ansi`,
`microsoft`, `nxp` and `auto` beside the unchanged default — chosen from the
`lucisv.format.style` drop-down or `[format] style` in `lucisv.toml`.
## Release 0.65.4 highlights
Version 0.65.4 makes `` `ifdef `` regions foldable branch by branch, and pins
the branch you are inside in sticky scroll.
## Release 0.65.3 highlights
Version 0.65.3 highlights `TODO`, `FIXME`, `FIX_ME` and `TBD` inside comments,
and any words of your own you list in `lucisv.commentKeywords.custom` — in
comments only, never in code or strings.
## Release 0.65.2 highlights
Version 0.65.2 lights your position in the Hierarchy pane: the instances of
the module you are editing in a light, bright orange, and each parent above
them a shade dimmer, so the path from the top of the design to the open file
reads at a glance.
## Release 0.65.0 highlights
Version 0.65.0 gives module instantiations distinct syntax colours across
themes: module names (`class`), instance names (`function`), port names
(`.port` / `.*`, `property`), and connected signals (`variable`) each stand
out, and parameter-list `#` signs share the `parameter` colour separately from
parentheses.
## Release 0.64.0 highlights
Version 0.64.0 makes typing quicker: `begin` + Enter writes the `end`,
`always_ff @(` expands with clock and reset, the suggestion list puts this
file's names first, keywords appear as grey ghost text, and port suggestions
list unconnected ports first and write `.name()` — while the errors on a
connection you are still typing wait until you pause.
## Release 0.63.1 highlights
Version 0.63.1 makes sticky scroll pin the first line of every block you are
inside — the module, the `always`, the `case`, the case item, the `if` —
instead of the module header alone.
## Release 0.63.0 highlights
Version 0.63.0 makes **Format Selection** format just the block you selected,
at the indentation it already has, and makes `Ctrl+/` (`Cmd+/`) toggle
comments on the selected lines.
## Release 0.62.0 highlights
Version 0.62.0 lets references and rename follow a hierarchical path from a
top-level module (`tb.dut.u_core.sig`) whenever the root is certain, and
says so plainly where it is not.
## Release 0.61.0 highlights
Version 0.61.0 makes Show Call Hierarchy answer from wherever the cursor is
— an instance, a module body, or a function or task, which are now nodes
with their own callers and callees — and adds a References view that shows
every reference's whole line instead of VS Code's clipped preview
(`Shift+Alt+F12`; `lucisv.references.fullLineView` turns it off).
## Release 0.60.0 highlights
Version 0.60.0 makes a generate block label a real name: renaming it
rewrites its closing label and every hierarchical path through the block,
in the same file or any other, and Find All References lists them. Rename
warnings now name only the spellings that can reach the renamed
declaration — another module's same-named signal is left out, a path or a
macro that carries the name onward is not.
## Release 0.59.0 highlights
Version 0.59.0 adds a read-only mode to `lucisv-mcp`: with
`lucisv.mcp.mode` set to `read-only` (or `--read-only` on the command
line) the agent sees five tools — hierarchy, find, outline, read, check —
in under 1.8 kB, and the server never writes inside the project. The full
nine-tool mode is unchanged and stays the default.
## Release 0.58.0 highlights
Version 0.58.0 slims `lucisv-mcp` to nine tools whose whole catalogue is
under 3.5 kB: the hierarchy as `file:line` with a peek at the source,
every declaration and use of a name, a file or unit outline, one item's
source, diagnostics, and four verified bulk edits (rename, port, item,
format) with no dry run. Measured against OpenTitan it is as cheap as
plain file reads on whole-design questions and correct on every run.
## Release 0.57.0 highlights
Version 0.57.0 bundles `lucisv-mcp` in every platform package and
registers it with VS Code's agent mode, adds the structural edit tools and
the warm start from the editor's index, and folds in what three rounds of
measuring agents against OpenTitan taught (see `mcp_analysis.md`).
## Release 0.56.0 highlights
Version 0.56.0 makes rename write out the `.name` and `.*` connections it
used to cut silently, and previews `lucisv-mcp`, a Model Context Protocol
server for coding agents built from the repository (not yet bundled).
## Release 0.55.0 highlights
Version 0.55.0 makes Find All References see every cross-file use of a
module's internal signals — a `bind` connection or a `u_x.sig` path in
another file — and guarantees a stale index can omit a location but
never point at the wrong line.
## Release 0.54.0 highlights
Version 0.54.0 makes rename edit `bind` files (or warn, never stay
silent) and cuts the first request after an edit in a very large file by
about a fifth.
## Release 0.53.0 highlights
Version 0.53.0 fixes the startup scan indexing a symlink-aliased
directory twice.
## Release 0.52.0 highlights
Version 0.52.0 is the take-5 review round: cheaper refusals, one lint
pass per revision, a fast first answer after opening a file, and scans
that stay responsive under load.
## Release 0.51.0 highlights
Version 0.51.0 is performance take 5: code actions, rename, the CLI
census and the startup all do less work for the same answers.
## Release 0.50.0 highlights
Version 0.50.0 fixes the CLI's format cache ignoring `uvm-utils-indent`
and ships performance take 4 with a committed harness.
## Release 0.49.0 highlights
Version 0.49.0 adds inline module (the reverse of extract), the last six
language shapes from the coverage tables plus `randsequence`, and an
opt-in `uvm_field_*` indent.
## Release 0.48.0 highlights
Version 0.48.0 makes the hierarchy pane DUT-centred: star a module and
see it with its children, its parents, and everything else in their own
sections.
## Release 0.47.0 highlights
Version 0.47.0 adds organize imports (with organize-on-save) and extract
module with dataflow-inferred ports.
## Release 0.46.0 highlights
Version 0.46.0 adds two refactorings: expand `.*` and convert ports to
ANSI, both verified whole-edit with every comment kept.
## Release 0.45.0 highlights
Version 0.45.0 makes rename follow hierarchical paths across files,
resolves names through package re-exports, and gives type names exact
spans.
## Release 0.44.0 highlights
Version 0.44.0 makes opening a file 10–15× faster (one lint rule was
asking the workspace too early), warns instead of failing on unreadable
directories, and closes four small parser and editor items.
## Release 0.43.0 highlights
Version 0.43.0 closes the repository analysis's three findings: atomic
writers that cannot collide, one lint-configuration contract for project
and editor, and directory walks that terminate on symlink cycles.
## Release 0.42.0 highlights
Version 0.42.0 adds external waiver files (Verible's format) and formats
two vendor shapes the opentitan sweep used to skip.
## Release 0.41.0 highlights
Version 0.41.0 takes the code-action request off the module fan-out and
answers go-to-definition from the index.
## Release 0.40.0 highlights
Version 0.40.0 recovers a stray `begin` block and a half-typed `#(`
override without losing the rest of the module, and makes every
in-place write atomic.
## Release 0.39.0 highlights
Version 0.39.0 completes the Verible rule set: 73 lint rules, each with
a severity, a toggle and, where it applies, options.
## Release 0.38.0 highlights
Version 0.38.0 adds per-rule lint options (naming patterns, line
length, generate-label prefixes) and eighteen Style rules, each with
its own toggle — 54 rules in all.
## Release 0.37.0 highlights
Version 0.37.0 keeps a module or function intact while you type inside
its header, so the outline, completion and hover keep answering and one
typo costs one diagnostic.
## Release 0.36.1 highlights
Version 0.36.1 (0.36.0 plus its release notes) gives every lint rule a
severity, exposes every rule and every severity class as a toggle in
Settings, and adds nineteen rules aimed at what would fail to compile
or silently mis-synthesize.
## Release 0.35.0 highlights
Version 0.35.0 lets format fences protect statements inside procedural
blocks, function and task bodies, and items inside class bodies.
## Release 0.34.0 highlights
Version 0.34.0 makes rename name the macro arguments it cannot edit,
parses modport method prototypes and unnamed DPI formals, and adds
`lucisv check --rules-doc`.
## Release 0.33.0 highlights
Version 0.33.0 parses SystemVerilog assertions — `property`/`sequence`
declarations and concurrent assertions — as real code, so rename,
references, outline and the lints see inside them, with a byte-exact
fallback for anything the grammar cannot take.
## Release 0.32.0 highlights
Version 0.32.0 gives `bind` directives real semantics — indexed targets,
connections resolved in the target module — keeps a spaced macro call
and a `` `ifdef `` inside a connection from making a file unformattable,
and adds the `lucisv.instantiate` command so Neovim users get the
instantiation skeleton too.
## Release 0.31.0 highlights
Version 0.31.0 makes "comments are never dropped" true at every gap of
the grammar — about seventy places where a comment used to leave a file
unformattable now keep it exactly where it was written, with no change
to any file that had none — and adds go-to-definition on macro uses,
casts as references, and rename warnings for the uses it cannot resolve.
## Release 0.30.0 highlights
Version 0.30.0 turns the semantic lints on by default — `unused-signal`,
`undriven-net` and `multiply-driven` now see the whole project, with
`lucisv.lint.select`/`ignore` to tune them — and parses the vendor and
formal collateral (`specify`, UDPs, `checker`, `config`, `interface
class` with `implements` in the type hierarchy).
## Release 0.29.0 highlights
Version 0.29.0 parses include fragments — a bare statement list, an
enum-member list or a covergroup-item list in its own `.svh` — and
accepts a `` `define`` whose argument list spans lines without a
backslash, the way real tools do.
## Release 0.28.0 highlights
Version 0.28.0 completes the coverage grammar: `covergroup … endgroup`
bodies — coverpoints, bins of every kind, transitions, crosses with
`binsof`/`intersect`, options — format canonically and every sampled
name hovers, navigates and renames with its class property, with the
byte-exact verbatim fallback for anything unknown.
## Release 0.27.0 highlights
Version 0.27.0 gives constraint blocks a real grammar: `constraint c {
… }`, `constraint C::c { … }` and `randomize() with { … }` format
canonically, every name inside them hovers, navigates and renames with
its class property, and any shape the grammar does not know falls back
to the byte-exact verbatim capture it always had.
## Release 0.26.0 highlights
Version 0.26.0 makes a dot mean members: `item.`, `reg2hw.ctrl.`,
`vif.cb.`, `pkg::` and the port map after `sub u (.` list exactly what
belongs there — inherited members included, nothing else — and files
with escaped identifiers (`\my-signal `) finally format.
## Release 0.25.0 highlights
Version 0.25.0 resolves struct fields: `s.field`, nested
`reg2hw.ctrl.q` through generated register packages, unions, and the
anonymous `struct {…} s;` / `enum {A,B} x;` forms — hover, definition,
references and rename, in-file and across files.
## Release 0.24.0 highlights
Version 0.24.0 gives interfaces their own identity in the language
server: `vif.sig` and `vif.cb.sig` through virtual-interface handles
resolve across files, modports and clocking blocks are symbols you can
hover, jump to and rename, and an interface finally says "interface".
## Release 0.23.0 highlights
Version 0.23.0 follows member chains: `cfg.vif.clk`, `item.hdr.addr`
and instance ports `u_sub.done_o` resolve through the index across
files, typedef'd class aliases are chased, and renaming a signal now
rewrites its hierarchical uses too.
## Release 0.22.0 highlights
Version 0.22.0 brings class member access to the language server: hover,
go-to-definition, references and rename now follow `handle.member`
through the handle's declared class — inherited members included, across
files — and out-of-class method bodies see their class's members.
## Release 0.21.0 highlights
Version 0.21.0 accepts null items — `endgenerate;`, `end;`,
`endmodule;` and any other stray semicolon where an item may stand —
formatting them in place instead of failing, and adds the `empty-item`
lint with a quick fix that removes them.
## Release 0.20.0 highlights
Version 0.20.0 adds fuzzy identifier completion: from the third typed
character, `clkenq` finds `clk_osc_en_q` — subsequence matching with
word-boundary-aware ranking, sub-millisecond on a 4,000-file SoC.
## Release 0.19.0 highlights
Version 0.19.0 refines the instantiation ghost from live use: it waits
for the space that says the module name is finished, and modules
declared in more than one file now expand from the copy nearest the
file you're editing — every indexed module answers, verified against
all 1,131 of opentitan's.
## Release 0.18.0 highlights
Version 0.18.0 adds two-level module instantiation: the completion
popup offers module names instantly, and an exactly-typed name grows a
grey ghost of the full instantiation — parameters, ports, tabstops,
in-scope signals auto-connected — sub-millisecond on a 4,000-file SoC.
## Release 0.17.0 highlights
Version 0.17.0 completes the testbench-syntax wave: 99.7 % of a real
4,000-file SoC parses, formats and diagnoses cleanly — DV classes,
clocking, assertions, programs, generated register files included.
## Release 0.16.0 highlights
Version 0.16.0 is the testbench-syntax release: out-of-class
constraints, `` `ifdef `` splitting statements, and comment-shape
formatter fixes — 51 more files of a real 4,000-file SoC parse, format
and diagnose cleanly, and testbench editing stops drowning in cascade
diagnostics.
## Release 0.15.0 highlights
Version 0.15.0 is the interactive-latency release:
- The lightbulb, F2, rename, completion and highlighting are all
measured-fast on a 4 000-file SoC — nothing on the cursor's path
blocks the server for more than a few milliseconds.
- A design-hierarchy sidebar (contributed by codex): instances,
instant design-wide search, bookmarks, click-to-jump.
- Opening a file indexes its whole block by default, so cross-file
answers work immediately; `lucisv.verbose` logs per-operation
timings when you want them.
## Release 0.14.0 highlights
Version 0.14.0 is the first-hover release:
- Hover on instantiations and ports is now fast on the *first* try: the
server answers during the startup scan (~15 ms instead of waiting
hundreds), declaration lines live in the index, and closed files are
read once, then cached.
- The index cache format changed: the first open after updating
re-scans once, then persistent caching resumes.
## Release 0.13.1 highlights
Version 0.13.1 is the F12-latency release:
- Find References with a big file open answers in ~0.1 ms where it took
milliseconds, and jumping into a not-yet-indexed folder costs ~23 ms
where it took ~228 ms — the rescan reuses what open buffers already
analyzed.
- Deeply nested files produce a "nesting too deep" diagnostic instead of
ever crashing the server or CLI, on every platform.
## Release 0.13.0 highlights
Version 0.13.0 is the responsiveness release. Typing no longer reanalyzes the
buffer on every keystroke — the analysis is deferred to the first moment
anything needs it, so a burst of typing costs one reanalysis instead of one
per key, and half-typed lines stop flashing squiggles that vanish a moment
later. Cursor-position answers — expand selection, on-type formatting,
completion, inline templates — binary-search for the token under your cursor
instead of scanning the file.
Hover also learned old-style ports: a port named in the module header and
completed in the body (`input signed [31:0] data_in;`) shows both places on
one card, with the comments that document each of them.
## Release 0.12.1 highlights
Version 0.12.1 makes hover answer the question directly: a cross-file name
shows its declaration's own source line — `input logic [7:0] addr` for a
port, the header line for a module — not just the file and line it lives in.
## Release 0.12.0 highlights
Version 0.12.0 is the indexed-navigation release:
- Find All References reads precomputed declaration-to-use postings and
overlays your unsaved edits — ~0.06 ms on an 820-file workspace where the
previous project walk took 22 ms.
- Cursor lookups (hover, definition, references) binary-search position
tables instead of sweeping large buffers.
- The index cache format changed: the first open after updating re-scans the
workspace once, then persistent caching resumes.
## Release 0.11.0 highlights
Version 0.11.0 is the large-workarea release:
- Indexing starts from the files you open and their folders, not the whole
tree — `lucisv.index.scope`, with a depth knob and a one-line return to the
old whole-workspace walk.
- A save re-indexes one file in milliseconds; instantiation counts and
hierarchy answers come from precomputed tables instead of file walks.
- The index persists per workarea and resumes after a crash or reopen —
cached files fly through the counting progress bar.
- Netlists past `lucisv.largeFile.threshold` open in tens of milliseconds
with viewport syntax highlighting and same-file navigation.
- A size cap (`lucisv.index.maxFileSize`) keeps generated files out of the
index, and the output channel narrates every scan.
## Release 0.10.2 highlights
Version 0.10.2 is the one-step installation release:
- Five native platform packages embed both the language server and CLI, and an
`all` package carries every platform's pair in one file.
- Linux x64 and Arm64 packages are statically linked and work across distros.
- Explicit `lucisv.serverPath` overrides still work, while clearing the value
returns to the bundled server.
- Release assets are focused on the installable `.vsix` packages and their
checksums.
See the full [release notes](https://git.luci.ooo/lucio/lucisv/releases/tag/v0.10.2)
or the [design documentation](https://git.luci.ooo/lucio/lucisv/src/branch/master/docs/features).
## Troubleshooting
- **A `.sv` file has no lucisv features:** check the language mode in VS Code's
status bar. Another Verilog extension may have claimed the extension under a
different language id; lucisv activates for `verilog` and `systemverilog`.
- **Inline templates do not appear:** make sure both
`lucisv.inlineTemplates` and `editor.inlineSuggest.enabled` are on.
- **No instantiation ghost after a module name:** the name must match an
indexed module exactly, capitals included, and be followed by exactly one
space — the space is what says the name is finished (`aes` might still be
growing into `aes_dft`). Nothing else may follow the cursor on the line,
the position must be one where an instantiation may be written, and
`lucisv.inlineInstantiation` plus `editor.inlineSuggest.enabled` must be
on. A module declared in more than one file ghosts from the copy nearest
the file you are editing.
- **The wrong server starts:** clear a previously set `lucisv.serverPath`.
Any explicit value intentionally wins over the bundled server.
- **Every hover and diagnostic appears twice:** the pre-rename **vfmt**
extension is still installed alongside lucisv and both attach a language
server to the same files. Uninstall `vfmt` (lucisv is its successor) and
reload the window.
- **Navigation finds the wrong project copy:** point `lucisv.filelist` or the
`filelist` key in `lucisv.toml` at the exact EDA filelist your build uses.
- **Need server logs:** open **View → Output** and choose **lucisv**.
lucisv is MIT licensed. Source, issues, and design documentation live in the
[project repository](https://git.luci.ooo/lucio/lucisv).
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->