master
15
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3823b85667 |
Release 0.66.1: sticky scroll pins the module instance
A multi-line module instantiation now answers folding ranges, so VS Code's sticky scroll pins it (TODO §72, docs/features/instance-folding): one range from the module-type line, and one more per instance from the line its name is on when that is a later line, so both `aes_control_fsm #(` and `) u_aes_control_fsm (` stay pinned inside the connection list. The closing `);` line stays visible. - folding/instances.rs: what is an instantiation comes from vlog_semantic::instantiations::sites; where it closes is re-read from the tokens, and a statement whose tokens are not exactly that shape folds nothing. - folding.rs: in_answer_order is a stable sort by start line over scopes, branches, instances; every earlier fold is unchanged and first on a shared start line (0.66.0 against this tree on 4 933 files: identical once the instance folds are removed). - OpenTitan hw: 18 200 multi-line instantiations, none without its fold. - Not folded: two-dimensional instance arrays; an instance whose head an `ifdef splits. Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
10cb6e020f |
Release 0.66.0: the overnight queue, complete
Closes TODO §71: eight owner-ordered features shipped as 0.65.2–0.65.11. No engine change since 0.65.11. - docs/topo.md refreshed through 0.65.11: contracts, server-lane edges, packaging rows, open handshakes 44–66, new modules, choke points; stale FACTS_FORMAT and state.rs references corrected. - CLAUDE.md: file sizes re-measured. - Feature READMEs: five stale facts corrected. - large.rs: the two linear-time tests re-measure up to three times before failing (0.65.11's Linux CI run read 24.9x against a 24x limit under load). Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
cc1e2c8b72 |
Release 0.65.11: actions on the open file no longer wait for the workspace
A hover, definition, type definition, highlight, prepare-rename or signature help on a name the file itself declares, and the outline, folding and selection ranges, are answered from the open buffer ahead of a scan, a rescan or a widen (server/ahead.rs, same_file.rs). The precondition is stated once, on Server::answer_from_the_buffer; ahead::REACH lists the notifications proved unable to change a buffer and everything else blocks. Completion offers what the file can reach (imported package members, inherited class members, included headers' macros) right after its own names (completion/related.rs), and its answers are half the size (completion/wire.rs). A new largeFile.threshold re-classifies buffers already open. The client's answer to a settings pull is now ordered like a notification (amends scan-ordering); colours answered while anything is held count as unsettled. TODO 71.2. Four dev rounds, four QA rounds; the last ran with Fable 5.2 as dev and QA after two QA failures. docs/features/fast-actions. Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
c1c1407498 |
Release 0.65.10: highlighting no longer waits for the index
TODO §71.3. On OpenTitan the first colours of a newly opened file waited 600-700 ms for the index (building them takes 0.3-6.5 ms), a rescan held them for most of a second, and the first answer, built from a half-finished index, was never corrected. - server/viewport.rs: semanticTokens range, full and full/delta for a buffer whose text is current are answered from that buffer alone before the request would be held — when no change for it is queued anywhere (held, 71.7's behind count, set aside ahead of it in its burst) and it is not dirty. The handler reads only that document and the remembered token answer. Built on 0.65.8's must_hold; the lane's own queue tracking is gone. - server/index.rs: open_then_widen applies the didOpen, answers the burst's colour requests, then widens; reindex_widened answers colour requests between its files. - One workspace/semanticTokens/refresh once the index settles, when an early answer differed or was a guess; only for clients with refreshSupport, which are also the only ones given early full answers. - tokens.rs: range classifies only the window's tokens (+1 each side) and skips AST items outside it; large.rs's line window is shared. First colour 2-39 ms (was 600-700); folder-scope late open 611-641 -> 2-32 ms; rescan hold 325-791 -> 70-159 ms. 96.8 % of early tokens already match the settled answer; the rest resolve through the index. Dev (two rounds), QA (two rounds: ~10 000 token answers against an exact oracle, 978 non-colour answers identical to base) and lead review: docs/features/viewport-highlight/README.md. Not seen in a running editor. Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both package-lock.json spots); notes in CHANGELOG.md (## 0.65.10) and editors/vscode/CHANGELOG.md. Gates: tools/gates.sh PASS on this tree including cross; lucisv_server 2052/0. Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
a8c22dcab0 |
Release 0.65.9: lucisv-mcp no longer serves stale contents; the suite runs on Linux
TODO §70, closed. - lucisv_mcp/src/project/files.rs: Stamp's racy rule (re-check by content a stamp taken too close to a timestamp it trusts) covered the mtime alone. On Linux, where ctime moves in 1 ms ticks, a same-size rewrite that restored the old mtime inside the tick of the server's read matched in every field and index-based answers came from the old text indefinitely. The rule now covers every trusted timestamp (mtime, and ctime where there is one), the window is 3 s, and a wall clock stepped back since the read distrusts the stamp. The decision is a pure compare(Seen, Clocks) with deterministic unit tests. - Test-only: two stdin helpers tolerate BrokenPipe on the write to a child that exits before reading (lucisv cli.rs, lucisv_mcp qa_m8.rs); the didOpen latency test's budget is six parses of the same buffer, not 200 ms (lucisv_server e2e.rs); qa_m3's server is spawned before its checker thread, which removes a hang on a pipe inherited across threads on macOS. - .gitea/workflows/ci.yml: a linux job on the luhpe-linux-x64 runner — clippy and cargo test --workspace on Linux x86-64. - docs/features/mcp-transport describes the new rule and what it cannot see (Windows has no ctime; writable mmaps). Linux: whole suite green 10/10 as root and 10/10 as a user (dev), 6/6 and 6/6 (QA). QA reproduced the stale read on 0.65.8 (65/65, 87/87 when the stat was identical) and got 0 here. Dev, QA and lead review: docs/features/linux-test-portability/README.md, Round 2. Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both package-lock.json spots); notes in CHANGELOG.md (## 0.65.9) and editors/vscode/CHANGELOG.md. Gates: tools/gates.sh PASS on this tree including cross; lucisv_mcp 388/0. Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
934d472af2 |
Release 0.65.8: Find References next to a name, edits kept in order, a startup that could take minutes
TODO §71.7. Three server bugs, all older than this series. - A caret just past an identifier's last letter resolved the NEXT character (spans are end-exclusive): references, definition, hover and highlight came back empty where VS Code considers the caret on the word — the owner's 'not found, then works after clicking back'. lucisv_server/src/caret.rs; nine position-to-symbol requests use it through Server::symbol_offset; the References view opens a row with the caret at the name's start. - process_batch held requests during a scan but applied notifications at once, so a didChange could overtake an older one still queued; with incremental sync that corrupted the server's copy of the buffer until the file was reopened. Rule now: no notification overtakes an older unapplied notification (Server::must_hold, the 'behind' count for the burst a scan is nested in). Cancels wait whenever anything is held; responses never. - answer_what_is_waiting acted on a didOpen it had queued but not applied, re-holding the same batch at every file of the startup scan (~300-400 s on OpenTitan). Scan state now changes only where a message is applied; a held batch is handed back at most once per applied didOpen. An attempt to also drop excluded buffers from the index on close cost 190 ms per open of an outside file and was reverted after QA measured it. Dev (two rounds), QA (two rounds, own ordering driver: 9 118 bursts, no wrong text) and lead review: docs/features/scan-ordering/README.md. TODO.md files what stays open. Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both package-lock.json spots); notes in CHANGELOG.md (## 0.65.8) and editors/vscode/CHANGELOG.md. Gates: tools/gates.sh PASS on this tree including cross; lucisv_server 2030/0. Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
dbb2349267 |
Release 0.65.7: 0.65.6, built for every platform
0.65.6 was tagged and never published: the release build failed to compile lucisv-server for Windows. lucisv_core::walk::dir_id is a Copy (dev, ino) pair on unix and an owned PathBuf elsewhere, and 71.1's Workspace::holds_another_spelling_of moved it inside a closure (lucisv_server/src/state/incremental.rs). Compared by reference now. tools/gates.sh gains a `cross` step: cargo check of the three shipped binaries for x86_64-pc-windows-gnu and x86_64-unknown-linux-musl with the rustup toolchain release.sh --cross uses (skipped with a note when it is absent). It fails on the unfixed tree with the release run's own error and passes on this one. tools/RELEASING.md lists it. CHANGELOG.md's 0.65.7 section carries 0.65.6's notes in full under a short account of what happened; the v0.65.6 tag is left where it is. Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both package-lock.json spots). Gates: tools/gates.sh PASS on this tree including cross; a full local tools/release.sh --cross and tools/audit_artifacts.sh dist pass (seven .vsix packages, eighteen binaries). Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
58d3db3e3c |
Release 0.65.6: saving a file no longer re-indexes the workspace
TODO §71.1. On OpenTitan hw (4 058 files) every save cost ~160 ms of whole-index work, twice (the save and VS Code's watcher echo), and watcher events for files the index could not hold started whole rescans. - vlog_semantic: resolution records every table lookup per reading file, misses included (workspace/dependents.rs, references.rs, replace.rs); an update re-resolves the edited file and the readers of keys whose values changed in what resolution reads. An unchanged record merges nothing. When the readers hold more than an eighth of all references, old results are removed in one pass over the postings. - lucisv_server: watcher events are classified per file (state/watched.rs); the include graph keeps every include line as written and re-resolves the lines a named path could satisfy, in one pass per event; an event naming more paths than half the index takes the single rescan; an open buffer the index does not hold joins on its first save; completion tables are rebuilt only for the names a file declares. Every save still republishes every open buffer. The line-length lint follows the formatting style's width. - Fixed on the way: removing an included header left other files' include edges pointing at it. Typical saves: comment or watcher echo <0.3 ms, local signal 4 ms, package member 12 ms; warm startup +40..120 ms for the readers table. QA failed the first cut on four stale answers found with an independent fresh-server oracle; all four are fixed and are differential tests. Dev (three rounds), QA (two rounds) and lead review: docs/features/localized-reindex/README.md. TODO.md files lane 71.7 from what the QA rounds and an investigation found in earlier releases too. Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both package-lock.json spots); notes in CHANGELOG.md (## 0.65.6) and editors/vscode/CHANGELOG.md. Gates: tools/gates.sh PASS on this tree; vlog_semantic 435/0, lucisv_server 2011/0, lucisv_mcp 384/0. Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
80017a59f2 |
Release 0.65.5: named formatting styles
release / build-and-publish (push) Successful in 5m22s
TODO §71.5. One setting picks a house layout — [format] style in lucisv.toml, --style, the lucisv.format.style drop-down, the server and MCP: lucisv (default), google, lowrisc, ansi, microsoft, nxp, and auto. Seven layout rules (indent, width, begin placement, else placement, else after a labelled end, one-per-line lists, list indent, alignment), one row per style in one table in crates/vlog_formatter/src/style.rs. google and lowrisc follow those published guides; ansi, microsoft and nxp are lucisv's guesses and say so. auto formats with each preset and keeps the result that changes the fewest lines (crates/vlog_formatter/src/auto.rs); the language server remembers each document's preset (lucisv_server/src/auto_style.rs) so selection and on-type formatting do not repeat the search. The style is part of the format cache key. Proof: default output byte-identical to 0.65.4 on 4 921 files (corpus + OpenTitan hw) against an independently rebuilt 0.65.4; every style formatted three times over the same files with no verification error, crash, token or comment difference (independent lexer) or second-run change. verify.rs is untouched. Dev (three rounds), QA (two rounds, pass with findings) and lead review are in docs/features/format-styles/README.md. Three one-line calls were added to lucisv_server/src/server/notification.rs for the memory's invalidation. TODO.md files the pre-existing bugs QA met on the way. Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both package-lock.json spots); notes in CHANGELOG.md (## 0.65.5) and editors/vscode/CHANGELOG.md. Gates: tools/gates.sh PASS on this tree; vlog_formatter 376/0, lucisv_server 1996/0, corpus 814/6. Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
7408face90 |
TODO §70: the tests are portable to Linux (macOS-verified), and §71's queue
Test code only. The suite had only ever run on macOS; the first Linux trial
found clippy red on three unused imports and 11 failing tests.
- Unused imports (lucisv_server hover.rs, includes.rs test modules): they now
carry the same cfg as the macOS/Windows-only tests that use them.
- Eight permission-denied tests (lucisv cli, lucisv_core walk, lucisv_mcp
apply/cache/qa_m6, lucisv_server filelist): each first probes that the
mode it relies on is enforced and says 'skipped' if not (root ignores
modes); std only, no uid check.
- file_ops' case-mismatched include test probes the filesystem's case
sensitivity first.
- large.rs' two linear-time tests bound growth (8x input <= 24x time, best
of five) instead of wall-clock; shown to fail at ~60-74x on a quadratic
implementation by dev and QA independently.
- scan_trace's stage-sum lower bound is asserted on the best of three
sessions (reproduced flaky on macOS under load: 2.21 ms of 5.10 ms).
- walk.rs' TempTree test helper gains the Drop its doc promised.
- tools/linux_check.sh runs the working tree in the luhpe-linux-x64 runner's
job image, as root or --user, without a push.
Linux: root green and --user green but for the scan_trace flake were seen
once, on
|
||
|
|
d57496978f |
Release 0.65.4: `ifdef blocks fold, and pin in sticky scroll
release / build-and-publish (push) Successful in 5m44s
TODO §71.4. Each conditional-compilation branch (`ifdef, `ifndef, `elsif, `else) is a folding range from its directive line to the line before the next branch or `endif, kind region, nested to any depth; sticky scroll, which already follows the server's folds, pins the branch line. Built on the lexer's directive tokens (folding/directives.rs), so directives in comments, strings and `define bodies are not folded; no parser or formatter change. An existing fold is never lost or changed: scope and comment folds are computed as before and sent first at a shared start line (folding::in_answer_order). Proven on OpenTitan hw (4 061 files, 1 061 branch folds) and the corpus (860 files, 511): non-directive folds byte-identical to 0.65.3 (QA, base built from git archive), 10 000-case fuzz against an independent model. Dev, QA (pass with findings, one fix round) and lead review are in docs/features/ifdef-folding/README.md. Not seen in a running editor. Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both package-lock.json spots); notes in CHANGELOG.md (## 0.65.4) and editors/vscode/CHANGELOG.md. Gates: tools/gates.sh PASS on this tree, lucisv_server 1977/0. Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
948f8a0b32 |
Release 0.65.3: comment keywords, and the brackets in comments explained
release / build-and-publish (push) Successful in 5m28s
TODO §71.8. TODO, FIXME, FIX_ME and TBD inside // and /* */ comments are drawn bold in a new theme colour (lucisv.commentKeyword), as whole words and never in strings or code; lucisv.commentKeywords.custom adds the user's own words, .builtIn switches the four off, .caseSensitive ignores case, all live. Client-side editor decorations: commentScan.js finds comments with the grammar's own comment and string rules (0 mismatched lines against vscode-textmate over OpenTitan hw's 1 185 823 lines), commentKeywords.js matches literally over the visible lines only, with the block-comment state cached per document. The brackets sometimes coloured inside comments are VS Code's bracket-pair colourisation before background tokenization completes, not lucisv (grammar and semantic tokens measured clean); explained in the notes, not changed. Dev, QA (pass with findings, one fix round) and lead review are in docs/features/comment-highlighting/README.md. Not seen in a running editor. Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both package-lock.json spots); notes in CHANGELOG.md (## 0.65.3) and editors/vscode/CHANGELOG.md. Gates: tools/gates.sh PASS on this tree (20261119-050504), node 37/0. Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
e9f5090632 |
Release 0.65.2: the Hierarchy pane shows where you are
TODO §71.6. The rows leading to the file being edited are lit in the extension's Hierarchy pane: every instance of the module the open file declares in a light, bright orange with a solid bar and a bold label, each ancestor a shade dimmer with a narrower bar, down to a floor. A pure module (hierarchyCurrent.js) computes each module's distance with one breadth-first search up the instantiation graph; the webview repaints only the rows whose level changed, with no server request and no tree rebuild. Six theme colours under contributes.colors and the setting lucisv.hierarchy.highlightCurrent. hierarchyPalette_test.js computes label contrast (>= 4.5:1 on every level, six built-in themes) and neighbour distinctness from the shipped defaults. Dev, QA (pass with findings, one fix round) and lead review are in docs/features/hierarchy-current-path/README.md. Not seen in a running editor. Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both package-lock.json spots); notes in CHANGELOG.md (## 0.65.2) and editors/vscode/CHANGELOG.md. Gates: tools/gates.sh PASS on this tree (20261119-043114), node 12/0. Co-Authored-By: Claude Mythos 5.2 <[email protected]> |
||
|
|
88546c8b4e |
Release 0.65.1: releases are gated
The release workflow runs tools/gates.sh (after ensuring the cached corpus)
before it builds anything, so a tag whose tree fails a gate publishes
nothing; until now only the branch push was checked, by a workflow the
release did not wait for. No product change: the packages are 0.65.0
rebuilt, plus the test-only import fix in
|
||
|
|
5c00b701fc |
Drop an unused Notification import from the server tests
Rust 1.100's clippy reports it under -D warnings, which failed the ci checks job on the new lustudio-arm64 runner. Test-only; no behaviour change. Co-Authored-By: Claude Mythos 5.2 <[email protected]> |