From e115f9fc8f80b2ffb63968f9627d9b8b5b8c4c9d Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Mon, 9 Nov 2026 19:34:10 -0800 Subject: [PATCH] Release 0.63.0: Format Selection that fits where it stands, comment toggling in VS Code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both package-lock.json spots); notes in CHANGELOG.md (## 0.63.0) and editors/vscode/CHANGELOG.md. TODO §66.1, §66.2. Gates: the local tools/gates.sh run was not green — vlog_semantic and vlog_refactor were killed on the 300 s wall clock (a stuck syspolicyd made each new test binary take up to 40 s to launch); every test that ran passed, and both suites passed in full when re-run piecewise on d8119aa. By the owner's call the release relies on the Gitea CI run. Co-Authored-By: Claude Fable 5.2 --- CHANGELOG.md | 36 ++++++++++++++++++++++++++++++++ Cargo.lock | 18 ++++++++-------- Cargo.toml | 2 +- editors/vscode/CHANGELOG.md | 12 +++++++++++ editors/vscode/README.md | 8 ++++++- editors/vscode/package-lock.json | 4 ++-- editors/vscode/package.json | 2 +- 7 files changed, 68 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4613784..ef337ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,42 @@ 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.63.0 — 2026-11-09 + +### Format Selection that fits where it stands; comment toggling in VS Code + +(`docs/features/selection-formatting`; TODO §66.) + +- **Format Selection lays out only the block you selected.** Selecting an + `always` block, a `case` statement or a few statements used to re-lay the + whole enclosing module-level item — at the formatter's own depth, so a + block in a 4-space or tab-indented file moved, and the blank lines at the + selection's edges were eaten. The new engine + (`vlog_formatter::format_selection`) finds the smallest run of sibling + items or statements the selected lines cover, lays out that run alone and + puts it back starting at the leading whitespace it already has (tabs + kept). The parent is not touched. `textDocument/rangeFormatting`, + `rangesFormatting` and the on-type `;` all run on it. +- **A parse error elsewhere in the file no longer refuses the request.** The + selection is formatted when the error lies outside it, and refused only + when it lies inside. +- **How a selection picks its block.** Touching a block's first line takes + the whole block; a selection that starts inside it takes only the + statements it covers, even when it reaches the closing `end`; the `end` + line alone takes the block it closes. A selection of whole module-level + items behaves as before. +- **Still verified.** Every result passes the whole-file equivalence check + and a convergence replay, or the buffer is left unchanged; the verifier + itself is unchanged. CRLF files keep every line ending. +- The on-type `;` now tidies its statement in a buffer whose error is + elsewhere, and no longer adds a final newline to a file without one. +- The reply is still one whole-document edit; the CLI's `--lines` is + unchanged (whole module-level items). +- **VS Code: `Ctrl+/` toggles comments.** The extension now declares the + language's `//` and `/* */` comments, bracket pairs and auto-closing + pairs for Verilog and SystemVerilog, so Toggle Line Comment and Toggle + Block Comment work on one line or a selection. + ## 0.62.0 — 2026-10-19 ### Paths rooted at a top-level module; a dependable release gate diff --git a/Cargo.lock b/Cargo.lock index 1763005..503dff2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.62.0" +version = "0.63.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.62.0" +version = "0.63.0" [[package]] name = "lucisv_mcp" -version = "0.62.0" +version = "0.63.0" dependencies = [ "lucisv_core", "serde", @@ -126,7 +126,7 @@ dependencies = [ [[package]] name = "lucisv_server" -version = "0.62.0" +version = "0.63.0" dependencies = [ "lsp-server", "lsp-types", @@ -262,14 +262,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.62.0" +version = "0.63.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.62.0" +version = "0.63.0" dependencies = [ "lucisv_core", "vlog_formatter", @@ -279,11 +279,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.62.0" +version = "0.63.0" [[package]] name = "vlog_refactor" -version = "0.62.0" +version = "0.63.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -292,7 +292,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.62.0" +version = "0.63.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 45cf72e..f274406 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ members = [ ] [workspace.package] -version = "0.62.0" +version = "0.63.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index ddceef6..76d3664 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.63.0 — 2026-11-09 + +- **Format Selection formats just what you selected.** Select an `always` + block, a `case` statement or a few statements and only that block is laid + out, starting at the indentation it already has; the code around it is + left alone. It used to re-lay the whole enclosing module or top-level + block. +- **Format Selection works while another part of the file is broken.** A + syntax error outside the selection no longer stops it. +- **`Ctrl+/` (`Cmd+/`) toggles comments** on the current line or every + selected line, and brackets and quotes auto-close. + ## 0.62.0 — 2026-10-19 - **Find All References and Rename follow paths from a top-level module.** diff --git a/editors/vscode/README.md b/editors/vscode/README.md index b2909ce..eb649cb 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.62.0**. Its platform packages include +The current release is **0.63.0**. Its platform packages include `lucisv-server`, the `lucisv` command-line tool and `lucisv-mcp` (see [Agents (MCP)](#agents-mcp)): @@ -406,6 +406,12 @@ Every nesting color is a proper VS Code theme color: } ``` +## 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 diff --git a/editors/vscode/package-lock.json b/editors/vscode/package-lock.json index fb4e8c6..4805750 100644 --- a/editors/vscode/package-lock.json +++ b/editors/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "lucisv", - "version": "0.62.0", + "version": "0.63.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "lucisv", - "version": "0.62.0", + "version": "0.63.0", "license": "MIT", "dependencies": { "vscode-languageclient": "9.0.1" diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 4f3f5ab..29fc63a 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.62.0", + "version": "0.63.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",