Include navigation M10: clickable includes, incdir-aware defines

One line scanner feeds three consumers that can never disagree:
documentLink underlines every include path, definition lands on the
resolved file, and hover's define lookup narrows to definitions
reachable through the hovered file's include graph (narrow, never
widen; local defines always win). Resolution is own-directory then the
filelist's +incdir+s in order - M1 recorded them, M10 finally spends
them; angled includes skip the own-directory rung. Resolved paths are
re-spelled the way the index spells them so a case-insensitive
filesystem cannot make hover silently drop a reachable define (QA HIGH,
fixed with a pure lookup that latches to ambiguity on collisions).
Graph build: ~7ms over the 860-file corpus.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-08-25 00:39:45 -07:00
1 parent ab7beb1e54
commit e546d86677
13 files changed
+2069 -57

No files matched your search

+2 -1
View File
@@ -159,7 +159,7 @@ built but nothing consumes yet. Ordered by value ÷ cost:
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.
- [ ] **`` `include`` navigation and `+incdir+` consumption** — M1 records
- [x] **`` `include`` navigation and `+incdir+` consumption** — M1 records
incdirs and nothing uses them; `` `include "x.svh" `` is not clickable
and the define table stays per-file. Document links (or definition) on
include lines, resolved through the filelist's incdirs, and a
@@ -264,6 +264,7 @@ commit — in order:
- [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
- [x] M10 include-nav — done, one QA HIGH reworked, reviewed
## Work log