Serve document links for quoted includes

A bounded core resolves quoted include directives from the document
directory and reports the spelling range; the server advertises
documentLinkProvider and serves textDocument/documentLink from
snapshots, keeping only targets that exist on disk. Angle includes are
skipped because their search roots are unknown. Registered feature
tests cover resolution, indentation, line counting, skipping and
bounds, and the exact-capability-set assertion was updated. A real
stdio session linked extra.hpp and skipped <vector> and a missing
file.
This commit is contained in:
faumaray committed 2026-12-05 19:21:23 +03:00
1 parent a5b9f34c9e
commit 62d6ad01e8
13 files changed
+224 -5

No files matched your search

+19
View File
@@ -79,6 +79,25 @@ the upgraded snapshot (keeping `snapshot.prev.json`) and rewrites a legacy
about 25-30s in a Debug build (it passed VBS at ~27s); the full CMake run then
passed 18/18.
## December 5 document links for includes
`include/vls/features/DocumentLinks.hpp` resolves quoted include directives
from the document's directory (angle includes are skipped because their search
roots are unknown) and returns the spelling range per directive, with
registered `vls_feature_tests` cases for resolution, indentation, line counting,
skipping and bounds. `Server.cpp` advertises `documentLinkProvider` and serves
`textDocument/documentLink` from document snapshots, keeping only targets that
exist on disk. No compiler is involved.
Real stdio session on a document with `#include "extra.hpp"`,
`#include <vector>` and `#include "missing.hpp"`:
```
documentLink: 1 [({'character': 10, 'line': 0}, 'extra.hpp')]
```
The angle include and the missing file produce no link. The exact-capability-set
assertion in `tests/TestSupport.hpp` was updated to the fourth advertised
capability. All 18 native suites and all 18 CMake tests passed.
## December 5 index schema 3 and overload-set signature help
`SymbolRecord` now carries the optional compiler signature and the snapshot