From 3f912e7fcedcf6e3bf4f6cd63949d1e41659522d Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Sun, 30 Aug 2026 19:04:41 -0700 Subject: [PATCH] =?UTF-8?q?Release=200.20.0=20=E2=80=94=20fuzzy=20completi?= =?UTF-8?q?on=20at=20VS=20Code's=20floor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ Cargo.lock | 16 ++++++++-------- Cargo.toml | 2 +- editors/vscode/CHANGELOG.md | 12 ++++++++++++ editors/vscode/README.md | 8 +++++++- editors/vscode/package.json | 2 +- 6 files changed, 55 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 863ce0f..9d4ee10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,32 @@ 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.20.0 — 2026-08-30 + +Fuzzy completion: `clkenq` reaches `clk_osc_en_q`. + +Identifier completion now matches by **subsequence** — the typed +letters present in the name, in order — at three or more typed +characters, and by prefix below that: VS Code's own rule, ruled by the +owner. The scope-visible, project-declaration and project-word tiers +go fuzzy; modules (substring), keywords, templates and `` `define `` +names keep their own semantics, and the instantiation ghost's +exact-match trigger deliberately stays exact. + +Ranking is prefix-first, then a boundary-aware score: letters landing +at the starts of name parts (`c`·`l`·`k` at `clk_…`'s components) +outrank accidental scatter, contiguous runs outrank gaps, and the +order is deterministic. The scan is affordable because every table +entry carries a 32-bit character mask — a `clkenq` keystroke rejects +99.6 % of opentitan's 100 022-word table with one AND each and costs ++0.05 ms; the expensive class is three very common letters (`aes`, +`ena`), measured at 1–4 ms server-side and accepted as imperceptible +in a popup. 1–2-character responses are always `isIncomplete`, so the +third keystroke — the one that turns fuzzy on — always reaches the +server. + +Formatter output unchanged; the bump is the completion behavior. + ## 0.19.0 — 2026-08-30 Inline instantiation, round 2 — two rulings from first live use. diff --git a/Cargo.lock b/Cargo.lock index bed8743..3733aac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.19.0" +version = "0.20.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.19.0" +version = "0.20.0" [[package]] name = "lucisv_server" -version = "0.19.0" +version = "0.20.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.19.0" +version = "0.20.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.19.0" +version = "0.20.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.19.0" +version = "0.20.0" [[package]] name = "vlog_refactor" -version = "0.19.0" +version = "0.20.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.19.0" +version = "0.20.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index e2686b8..f46aea7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.19.0" +version = "0.20.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index 9b5f144..9eceb34 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,18 @@ for you. The extension and its bundled language server share one version number; the full engineering notes live in the [project changelog](https://git.luci.ooo/lucio/lucisv/src/branch/master/CHANGELOG.md). +## 0.20.0 — 2026-08-30 + +- **Fuzzy autocomplete for identifiers**: type the letters you + remember, in order — `clkenq` finds `clk_osc_en_q`. Kicks in from + the third typed character (below that, prefix matching, same as VS + Code's own rule); letters landing at word boundaries rank first, so + the name you meant is at the top. Costs well under a millisecond on + a 4,000-file SoC for a typical query. +- Module instantiation ghosts are unaffected: the ghost still requires + the exact module name plus a space — fuzzy never writes code for + you. + ## 0.19.0 — 2026-08-30 - **The instantiation ghost now waits for a space**: type the module's diff --git a/editors/vscode/README.md b/editors/vscode/README.md index c7b476c..0760793 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.19.0**. Its platform packages include both +The current release is **0.20.0**. Its platform packages include both `lucisv-server` and the `lucisv` command-line tool: | Package target | Machines | @@ -326,6 +326,12 @@ Every nesting color is a proper VS Code theme color: } ``` +## 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 diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 97782a2..04d8f43 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.19.0", + "version": "0.20.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",