diff --git a/CHANGELOG.md b/CHANGELOG.md index 6441f5b..0e9218b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,54 @@ 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.64.0 — 2026-11-17 + +### Completion that keeps up with typing + +(`docs/features/completion-ux`, `docs/features/port-entry-grace`; TODO §68.) + +- **`begin` + Enter writes the `end`.** The newline on-type answer, when + the line above ends in `begin` (or `begin : label`) and a block is still + open, also inserts `end` on the line after the new one, at the + indentation of the statement that owns the `begin`; the cursor stays on + the new, indented line. Nothing is added when the blocks already balance + (an `end` under the owner or under a `begin` on its own line counts), nor + for a `begin` left open inside an `ifdef` region that has an `else`. + Setting `lucisv.autoEnd` (default on). The VS Code extension sends the + request itself when `editor.formatOnType` is off. +- **`always_ff @(` and `always @(` expand with clock and reset**: + `posedge clk or negedge rst_n`, both names tab stops, as the ghost text + and as the first popup template. The clock-only forms follow. +- **This file's names rank first.** The popup's order is now: the scope at + the cursor, names declared anywhere in this buffer, words used in it, + then the workspace index, templates, keywords and project words. +- **Keyword ghosts.** Two or more letters of a keyword show the rest as + grey inline text (Tab accepts); with the popup open the ghost follows its + selected entry. A word that is exactly a name the buffer declares gets + none. A `.v` file is offered Verilog-2005 keywords only. Setting + `lucisv.inlineKeywords` (default on). The `begin` ghost now also appears + for a `begin` typed inside a block that already balances. +- **Port suggestions.** After `.` in an instance, unconnected ports come + first and already-connected ones follow, marked `connected`; they used to + be left out. Accepting a port inserts `name()` with the cursor inside, + pre-filled with a same-named signal when one is visible; parameter lists + (`#(.`) behave the same. +- **An unfinished connection stays in its own entry.** In the editor's + tolerant parse, a lone `.`, a `.name(` still open at the end of its line + and a trailing `,` are each recovered inside their entry — always with a + diagnostic — so the rest of the list and the file still parse, colour and + lint. Strict parsing, and so the formatter and the CLI, are unchanged. +- **Errors on the connection being typed wait.** Diagnostics that start + inside the entry the last edit touched, in a named-connection list of an + instance, are withheld and published after 1.5 s without typing, on an + edit elsewhere, or on save. A client that pulls diagnostics and supports + it is sent `workspace/diagnostic/refresh`. Nothing outside that entry is + ever withheld. +- **Changed: a trailing `,` in a named connection list (`.a(x),)`) is now + reported in the editor.** The formatter and the CLI always refused it; + the editor's tolerant parse used to accept it silently. Format Selection + elsewhere in such a file now works instead of refusing the whole file. + ## 0.63.1 — 2026-11-11 ### Sticky scroll shows every layer diff --git a/Cargo.lock b/Cargo.lock index 50a48b9..56fc39f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.63.1" +version = "0.64.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.63.1" +version = "0.64.0" [[package]] name = "lucisv_mcp" -version = "0.63.1" +version = "0.64.0" dependencies = [ "lucisv_core", "serde", @@ -126,7 +126,7 @@ dependencies = [ [[package]] name = "lucisv_server" -version = "0.63.1" +version = "0.64.0" dependencies = [ "lsp-server", "lsp-types", @@ -262,14 +262,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.63.1" +version = "0.64.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.63.1" +version = "0.64.0" dependencies = [ "lucisv_core", "vlog_formatter", @@ -279,11 +279,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.63.1" +version = "0.64.0" [[package]] name = "vlog_refactor" -version = "0.63.1" +version = "0.64.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -292,7 +292,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.63.1" +version = "0.64.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index a4a6aeb..b91e43e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ members = [ ] [workspace.package] -version = "0.63.1" +version = "0.64.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index 1ca6be0..ae7fa98 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,26 @@ 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.64.0 — 2026-11-17 + +- **`begin` + Enter writes the `end`.** The cursor lands on the indented + line between them, ready for the first statement. Turn it off with + `lucisv.autoEnd`. +- **`always_ff @(` and `always @(` expand with clock and reset** — + `posedge clk or negedge rst_n` — and Tab jumps between the two names. +- **Suggestions put this file's names first**, ahead of names from other + files and keywords. +- **Keywords appear as grey ghost text** after two letters; Tab accepts. + Turn it off with `lucisv.inlineKeywords`. +- **Port suggestions list unconnected ports first**; ports you already + connected follow, marked `connected`. Accepting one writes `.name()` with + the cursor inside, filled in with a same-named signal when there is one. +- **No rushed errors while you type a connection.** The error on a + half-typed `.port` waits until you pause for a moment, edit elsewhere or + save, and the rest of the file keeps its colours and lint meanwhile. +- A trailing comma before the closing `)` of a named connection list is now + flagged in the editor (the formatter always refused it). + ## 0.63.1 — 2026-11-11 - **Sticky scroll shows where you are, layer by layer.** The first line of diff --git a/editors/vscode/README.md b/editors/vscode/README.md index 2e66a45..9a17334 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.63.1**. Its platform packages include +The current release is **0.64.0**. Its platform packages include `lucisv-server`, the `lucisv` command-line tool and `lucisv-mcp` (see [Agents (MCP)](#agents-mcp)): @@ -421,6 +421,14 @@ Every nesting color is a proper VS Code theme color: } ``` +## 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 diff --git a/editors/vscode/package-lock.json b/editors/vscode/package-lock.json index 295cf25..116b99e 100644 --- a/editors/vscode/package-lock.json +++ b/editors/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "lucisv", - "version": "0.63.1", + "version": "0.64.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "lucisv", - "version": "0.63.1", + "version": "0.64.0", "license": "MIT", "dependencies": { "vscode-languageclient": "9.0.1" diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 8f52234..a8e4c02 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.63.1", + "version": "0.64.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",