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]>
47 lines
1.7 KiB
TOML
47 lines
1.7 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = [
|
|
"crates/vlog_parser",
|
|
"crates/vlog_semantic",
|
|
"crates/vlog_refactor",
|
|
"crates/vlog_formatter",
|
|
"crates/vlog_linter",
|
|
"crates/lucisv_core",
|
|
"crates/lucisv",
|
|
"crates/lucisv_server",
|
|
"crates/lucisv_mcp",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.65.10"
|
|
authors = ["Guoliang Chen"]
|
|
edition = "2021"
|
|
license = "MIT"
|
|
|
|
# `rayon` is sanctioned by TODO.md §3 (parallel file processing) and used by
|
|
# `lucisv` only. Pinned exactly, because a work-stealing scheduler is exactly
|
|
# the kind of dependency whose minor releases can change thread behavior;
|
|
# justification in docs/features/parallel-files/README.md.
|
|
[workspace.dependencies]
|
|
rayon = "=1.12.0"
|
|
|
|
# The LSP stack, sanctioned by TODO.md §6 ("`tower-lsp` or `lsp-server`"), used
|
|
# by `lucisv_server` only. `lsp-server` is rust-analyzer's synchronous transport
|
|
# (no async runtime); `lsp-types` is the protocol's data model, which is not
|
|
# something to hand-roll. All pinned exactly for the same reason `rayon` is: a
|
|
# wire protocol's Rust bindings change shape between minor releases. Transitive
|
|
# count, build scripts and the versions considered are audited in
|
|
# docs/features/lucisv-server/README.md.
|
|
lsp-server = "=0.10.0"
|
|
# `proposed` is what carries LSP 3.18's `textDocument/inlineCompletion` — the
|
|
# params, the client/server capability. Nothing else in the feature is used,
|
|
# and the *response* types are hand-rolled in `inline.rs` because 0.97's are
|
|
# an older draft than the client implements
|
|
# (docs/features/inline-templates/README.md).
|
|
lsp-types = { version = "=0.97.0", features = ["proposed"] }
|
|
serde = "=1.0.229"
|
|
serde_json = "=1.0.140"
|
|
|
|
[profile.release]
|
|
lto = true
|