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]>