Serve definition from reflection provenance chains
reflection::definition_at returns the innermost covering entity's first reflected-declaration link (else its first chain link), with a registered test. The server serves textDocument/definition over a recorded reflection snapshot and now advertises hover and definition whenever a snapshot is loaded, not only with the occurrence observer. A real stdio session resolved the splice site to the reflected declaration range.
This commit is contained in:
1 parent
1f01bcbfd5
commit
7e3ce6fc6c
6 files changed
+109
-9
No files matched your search
@@ -12,7 +12,7 @@ missing part. Updated December 5, 2026 after semantic tokens and inlay hints.
|
||||
| textDocument sync (full + incremental, UTF-8/UTF-16) | document suite, real stdio corpora |
|
||||
| publishDiagnostics (stock GCC, in-process default profile) | diagnostic suite, stdio corpus |
|
||||
| textDocument/hover, definition | stock occurrence corpus |
|
||||
| textDocument/hover over reflection snapshots | recorded-snapshot stdio session |
|
||||
| textDocument/hover and definition over reflection snapshots | recorded-snapshot stdio session |
|
||||
| textDocument/references, prepareRename, rename | navigation suite, stock corpus refusals |
|
||||
| textDocument/completion (+ completionItem/resolve) | `vls_feature_tests`, real stdio session |
|
||||
| textDocument/signatureHelp | `vls_feature_tests`, real stdio session |
|
||||
|
||||
@@ -61,6 +61,22 @@ start coordinate only, so ranges are zero-width until an end is available.
|
||||
LSP adapters and index/rename/debugging integration remain open. `vbs test`
|
||||
passed all 17 native suites; CMake passed the reflection and trace suites.
|
||||
|
||||
## December 6 reflection definition and capability advertisement
|
||||
|
||||
`reflection::definition_at` selects the innermost entity covering a position
|
||||
and returns its first reflected-declaration link (else the first chain link),
|
||||
with a registered `vls_reflection_tests` case. The server now serves
|
||||
`textDocument/definition` over a recorded reflection snapshot, and advertises
|
||||
hover and definition whenever a snapshot is loaded (they previously worked but
|
||||
were only advertised with the occurrence observer). Real stdio session:
|
||||
```
|
||||
definition inside: {"range": {"start": {"character": 5, "line": 1},
|
||||
"end": {"character": 10, "line": 1}},
|
||||
"uri": "file:///.../main.cpp"}
|
||||
hover outside: null
|
||||
```
|
||||
All 18 native suites and all 18 CMake tests passed.
|
||||
|
||||
## December 6 base-class tokens in semantic tokens
|
||||
|
||||
Semantic tokens now also cover the observer-reported base-class name spans
|
||||
|
||||
Reference in new issue
Block a user