File watching M9: the index notices the world changing

workspace/didChangeWatchedFiles via dynamic registration (globs for the
four source extensions plus the configured filelist's own path), one
rebuild per notification with the same warning surfacing as save, and
re-registration when vfmt.filelist moves. Registration happens in
Server::new because lsp-server's initialize_finish consumes the
initialized notification - the protocol-suggested handler would be dead
code (verified against the vendored source). Open-buffer overlays
survive rebuilds; malformed and out-of-scope events rebuild nothing.
git pull, external editors and filelist edits now land without a save.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-08-24 23:51:39 -07:00
1 parent fa38fd9dec
commit ab7beb1e54
9 files changed
+1395 -57

No files matched your search

+2 -1
View File
@@ -155,7 +155,7 @@ built but nothing consumes yet. Ordered by value ÷ cost:
shows `.clk:`/`.rst_n:` ghost labels from the instantiated module's
definition (same index facts as M4); parameter names on ordered
`#(...)` overrides too. High everyday value in RTL review.
- [ ] **External file-change awareness** — the index rebuilds on save and
- [x] **External file-change awareness** — the index rebuilds on save and
didOpen only; a `git pull`, an external edit, or editing the `.f`
filelist itself goes unnoticed until the next save. Register
`workspace/didChangeWatchedFiles` (sources + the filelist) and reindex.
@@ -263,6 +263,7 @@ commit — in order:
- [x] Backlog triage after M6 — LSP-parity gap list added, 2026-08-24
- [x] M7 references-nav — done, QA clean first pass, reviewed
- [x] M8 inlay-hints — done, one QA HIGH fixed in-round, reviewed
- [x] M9 file-watching — done, QA clean first pass, reviewed
## Work log