diff --git a/CHANGELOG.md b/CHANGELOG.md index 161395a..312aa38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,69 @@ All notable changes to lucisv are recorded here. Versions follow [semantic versioning](https://semver.org/); until 1.0 the CLI's exit codes (see `README.md`) are the only frozen contract. +## 0.15.0 — 2026-08-29 + +The interactive-latency release, benchmarked twice against a real +3 976-file opentitan checkout (`performance.md`, `performance_take2.md` +at the repo root), plus a design-hierarchy sidebar contributed by +codex. + +### Every hot path measured, then fixed + +- **codeAction** (fires per cursor move): 3.1–4.6 s → **7 ms** — the + port-refactor engine reads the cursor module's indexed fan-out, not + the workspace; equality with the whole-workspace computation is + pinned, ambiguity refusals intact. +- **prepareRename** (pressing F2): 2.5–3.0 s → **microseconds**, flat + in project size — answered from the open buffer and the index, with + a refusal-by-refusal parity table; refusals are deferred to the + rename, never lost. +- **rename**: 3.6–8.7 s → **~105 ms** over the reference-postings + fan-out, including a sixth rung over unresolved spellings so the + dangling-import capture refusal fires exactly as the whole-workspace + walk's did. willRenameFiles rides the include graph: 250 → 14 ms. +- **completion**: 34–66 ms per keystroke → **3–15 ms** — module + headers are sliced, not whole-file-parsed, with whole-file re-plans + wherever the slice cannot be proven identical; items byte-identical. +- **documentHighlight**: fixed — it answered nothing for any name the + file uses but does not declare (a module instance, a connected + port), which is most of what a tb hovers. +- A widen that subsumes the old scope indexes only its new files, and + the word table merges per batch instead of per word (935 → 555 ms + for the first jump into a 1 685-file root, warm). + +### The scope default finds your block + +**Behavior change:** `lucisv.index.scopeDepth` defaults to **2** (was +0). Opening `hw/ip/aes/dv/tb/tb.sv` now indexes the aes block and +cross-file answers work immediately, where before exactly one file was +indexed and every cross-file answer was empty until a jump widened the +scope. An explicit `0` restores the old behavior exactly. + +### `--verbose`, when you want receipts + +`lucisv-server --verbose` (or the `lucisv.verbose` setting, which +restarts the server through a race-proof one-chain restarter) prints a +`timing:` line for every operation into the output channel. Off by +default and free when off. `--stdio` is accepted as the statement of +fact it is. + +### The design-hierarchy sidebar (contributed by codex) + +An instance-oriented hierarchy in the Activity Bar: every module, its +instances, search over the whole design, bookmarks, click-to-jump. +Snapshots read no files at all — the index now carries client +positions — so the handler answers in ~17 ms on opentitan and a save +with the sidebar open costs ~141 ms total. Search runs over a resident +model in single-digit milliseconds at 120 000 entries, collapsed by +default, expansion preserved across refreshes. + +### One-time index rebuild + +The persisted facts format moved to 5 (declaration spans, instance +occurrences, client positions; ~+2 % store). The first scan after +upgrading rebuilds the store once. + ## 0.14.0 — 2026-08-28 The first-hover release: the owner's "hover is really slow on first diff --git a/Cargo.lock b/Cargo.lock index c5352fd..1729aa2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.14.0" +version = "0.15.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.14.0" +version = "0.15.0" [[package]] name = "lucisv_server" -version = "0.14.0" +version = "0.15.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.14.0" +version = "0.15.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.14.0" +version = "0.15.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.14.0" +version = "0.15.0" [[package]] name = "vlog_refactor" -version = "0.14.0" +version = "0.15.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.14.0" +version = "0.15.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 561f2cb..a9d587a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.14.0" +version = "0.15.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index f25ec97..e39807f 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -25,6 +25,28 @@ number; the full engineering notes live in the quarter of a second. The index cache rebuilds once because its facts format changed. +## 0.15.0 — 2026-08-29 + +The interactive-latency release. + +- **Everything on the cursor's path is fast now**, measured on a + 3 976-file opentitan checkout: the lightbulb 3.1 s → 7 ms, F2 + 2.9 s → instant, rename 6.4 s → ~0.1 s, completion 34–66 → 3–15 ms + per keystroke, and occurrence highlighting actually works on + cross-file names. +- **A new design-hierarchy sidebar** (contributed by codex): modules + and their instances in the Activity Bar, instant search over the + whole design, bookmarks, click-to-jump. Collapsed by default; your + expansion survives refreshes. +- **Out-of-box answers:** `lucisv.index.scopeDepth` now defaults to 2, + so opening a file indexes its whole block — cross-file hover, + definition and references work immediately. Set it to 0 for the old + single-folder behavior. +- **`lucisv.verbose`**: flip it on and every operation logs its cost + in the lucisv output channel; flipping it restarts the server safely. +- One-time index rebuild on first open after updating (store format + gained the sidebar's position data). + ## 0.14.0 — 2026-08-28 The first-hover release. diff --git a/editors/vscode/README.md b/editors/vscode/README.md index f6d873f..2a19352 100644 --- a/editors/vscode/README.md +++ b/editors/vscode/README.md @@ -30,7 +30,7 @@ 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.14.0**. Its platform packages include both +The current release is **0.15.0**. Its platform packages include both `lucisv-server` and the `lucisv` command-line tool: | Package target | Machines | @@ -325,6 +325,19 @@ Every nesting color is a proper VS Code theme color: } ``` +## 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: diff --git a/editors/vscode/package.json b/editors/vscode/package.json index c1e2820..b6c2b94 100644 --- a/editors/vscode/package.json +++ b/editors/vscode/package.json @@ -2,7 +2,7 @@ "name": "lucisv", "displayName": "lucisv — Verilog/SystemVerilog", "description": "Fast Verilog/SystemVerilog formatting, linting, navigation, refactoring, semantic highlighting and RTL design intelligence.", - "version": "0.14.0", + "version": "0.15.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",