Compare commits

...
2 Commits
Author SHA1 Message Date
lucioandClaude Fable 5.2 6844fbecb6 Release 0.63.1: sticky scroll pins every layer's header
ci / checks (push) Successful in 1m36s
ci / corpus (push) Successful in 34s
release / build-and-publish (push) Successful in 8m23s
Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both
package-lock.json spots); notes in CHANGELOG.md (## 0.63.1) and
editors/vscode/CHANGELOG.md. TODO §67.
Gates: no local tools/gates.sh run; lucisv_server's folding tests (16),
clippy and fmt are clean locally, and the release relies on the Gitea CI
run (owner's call, 2026-11-09).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-11 14:19:28 -08:00
lucioandClaude Fable 5.2 3132c24b21 TODO §67: sticky scroll pins every layer's header (VS Code follows the folding ranges, ten lines deep)
configurationDefaults for verilog and systemverilog:
editor.stickyScroll.defaultModel = foldingProviderModel and
editor.stickyScroll.maxLineCount = 10. The outline model pinned only the
module header; the server's folds already start on each layer's first
line. A folding test pins the owner's example (module, always, case,
case item, if). Not yet seen in a running VS Code.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-11 14:19:24 -08:00
9 changed files with 111 additions and 16 deletions

No files matched your search

+21
View File
@@ -4,6 +4,27 @@ 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.1 — 2026-11-11
### Sticky scroll shows every layer
(TODO §67.)
- **VS Code: sticky scroll pins the first line of every block you are
inside.** Only the module header used to stay at the top of the editor,
because sticky scroll follows the document outline by default and the
outline stops at declarations. The extension now defaults
`editor.stickyScroll.defaultModel` to `foldingProviderModel` for Verilog
and SystemVerilog, so the pinned lines come from the server's folding
ranges — the module, the `always`, the `case`, the case item, the `if` —
and raises `editor.stickyScroll.maxLineCount` to 10 for those languages
(VS Code's 5 fits exactly that example and nothing deeper). Your own
settings still win.
- Known limit: a layer without `begin` (a one-statement `if`, a case item
with no `begin`) has no fold and so no pinned line; a `begin` on its own
line pins that line, not the `always` above it.
- No engine change: the server, formatter and linter are 0.63.0's.
## 0.63.0 — 2026-11-09
### Format Selection that fits where it stands; comment toggling in VS Code
Generated
+9 -9
View File
@@ -97,7 +97,7 @@ dependencies = [
[[package]]
name = "lucisv"
version = "0.63.0"
version = "0.63.1"
dependencies = [
"lucisv_core",
"rayon",
@@ -108,11 +108,11 @@ dependencies = [
[[package]]
name = "lucisv_core"
version = "0.63.0"
version = "0.63.1"
[[package]]
name = "lucisv_mcp"
version = "0.63.0"
version = "0.63.1"
dependencies = [
"lucisv_core",
"serde",
@@ -126,7 +126,7 @@ dependencies = [
[[package]]
name = "lucisv_server"
version = "0.63.0"
version = "0.63.1"
dependencies = [
"lsp-server",
"lsp-types",
@@ -262,14 +262,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
[[package]]
name = "vlog_formatter"
version = "0.63.0"
version = "0.63.1"
dependencies = [
"vlog_parser",
]
[[package]]
name = "vlog_linter"
version = "0.63.0"
version = "0.63.1"
dependencies = [
"lucisv_core",
"vlog_formatter",
@@ -279,11 +279,11 @@ dependencies = [
[[package]]
name = "vlog_parser"
version = "0.63.0"
version = "0.63.1"
[[package]]
name = "vlog_refactor"
version = "0.63.0"
version = "0.63.1"
dependencies = [
"vlog_formatter",
"vlog_parser",
@@ -292,7 +292,7 @@ dependencies = [
[[package]]
name = "vlog_semantic"
version = "0.63.0"
version = "0.63.1"
dependencies = [
"vlog_parser",
]
+1 -1
View File
@@ -13,7 +13,7 @@ members = [
]
[workspace.package]
version = "0.63.0"
version = "0.63.1"
authors = ["Guoliang Chen"]
edition = "2021"
license = "MIT"
+21
View File
@@ -7172,3 +7172,24 @@ parser and the CLI's `--lines` are not touched.
`generate`, inside a function), off-grid and tab indentation, partial
selections, comments, fences, broken files, masked-corruption attacks on
the splice.
## 67. Sticky scroll shows every layer (planned 2026-11-11, owner's order)
VS Code pinned only the module header, because sticky scroll follows the
document-symbol outline by default and the outline stops at declarations.
The server's folding ranges already carry every `begin`/`end`, `case`,
`fork`, `generate` and function — one fold per layer, starting on its header
line.
- [x] `editors/vscode/package.json` `configurationDefaults` for both language
ids: `editor.stickyScroll.defaultModel` = `foldingProviderModel` and
`editor.stickyScroll.maxLineCount` = 10 (VS Code's default of 5 is the
owner's example exactly, with nothing to spare). A user's own setting
still wins.
- [x] `crates/lucisv_server/src/folding.rs`: a test pinning that each layer
of the owner's example (module, `always`, `case`, case item, `if`)
starts a fold on its header line.
- [ ] Seen in a running VS Code (owner).
- Known limit: a layer with no `begin` (a one-statement `if`, a case item
without `begin`) has no fold and so no pinned line; a `begin` written on
its own line pins that `begin` line, not the `always` above it.
+33
View File
@@ -148,6 +148,39 @@ mod tests {
assert_eq!(folds(text), vec![(0, 5, "region"), (1, 4, "region"), (2, 3, "region")]);
}
#[test]
fn every_layer_a_reader_is_inside_starts_a_fold_on_its_header_line() {
// VS Code's sticky scroll is told (the extension's
// `editor.stickyScroll.defaultModel`) to pin the first line of every
// fold around the top of the viewport. So the header of each layer —
// module, `always`, `case`, the case item, the `if` — must be a fold's
// start line, and each fold must reach the innermost statement.
let text = concat!(
"module m (\n", // 0
" input a\n", // 1
");\n", // 2
" always @(*) begin\n", // 3
" case (st)\n", // 4
" st_1: begin\n", // 5
" if (cond_1) begin\n", // 6
" x = 1;\n", // 7
" y = 2;\n", // 8
" end\n", // 9
" end\n", // 10
" endcase\n", // 11
" end\n", // 12
"endmodule\n", // 13
);
let ranges = folds(text);
for header in [0, 3, 4, 5, 6] {
let fold = ranges.iter().find(|(start, _, _)| *start == header);
let Some((_, end, _)) = fold else {
panic!("no fold starts on line {header}: {ranges:?}")
};
assert!(*end >= 8, "the fold from line {header} must cover line 8, got {ranges:?}");
}
}
#[test]
fn a_scope_that_opens_and_closes_on_one_line_folds_nothing() {
// `end_line <= start_line` means there is no hidden line to gain.
+9
View File
@@ -5,6 +5,15 @@ 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.1 — 2026-11-11
- **Sticky scroll shows where you are, layer by layer.** The first line of
every block around the top of the editor stays pinned — the module, the
`always`, the `case`, the case item, the `if` — up to ten lines deep. It
used to pin the module header alone. To go back, set
`editor.stickyScroll.defaultModel` to `outlineModel` for Verilog and
SystemVerilog.
## 0.63.0 — 2026-11-09
- **Format Selection formats just what you selected.** Select an `always`
+8 -1
View File
@@ -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.0**. Its platform packages include
The current release is **0.63.1**. Its platform packages include
`lucisv-server`, the `lucisv` command-line tool and `lucisv-mcp` (see
[Agents (MCP)](#agents-mcp)):
@@ -142,6 +142,7 @@ enabling both paths formats twice.
| 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 |
| Sticky scroll | The first line of every block you are inside — the module, the `always`, the `case`, the case item, the `if` — 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?” |
@@ -406,6 +407,12 @@ Every nesting color is a proper VS Code theme color:
}
```
## 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,
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "lucisv",
"version": "0.63.0",
"version": "0.63.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "lucisv",
"version": "0.63.0",
"version": "0.63.1",
"license": "MIT",
"dependencies": {
"vscode-languageclient": "9.0.1"
+7 -3
View File
@@ -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.0",
"version": "0.63.1",
"publisher": "guoliangchen",
"author": "Guoliang Chen",
"license": "MIT",
@@ -192,10 +192,14 @@
},
"configurationDefaults": {
"[verilog]": {
"editor.defaultColorDecorators": "never"
"editor.defaultColorDecorators": "never",
"editor.stickyScroll.defaultModel": "foldingProviderModel",
"editor.stickyScroll.maxLineCount": 10
},
"[systemverilog]": {
"editor.defaultColorDecorators": "never"
"editor.defaultColorDecorators": "never",
"editor.stickyScroll.defaultModel": "foldingProviderModel",
"editor.stickyScroll.maxLineCount": 10
}
},
"languages": [