Serve references from reflection provenance chains
reflection::references_at joins the selected entity's links with every origin elsewhere naming the same entity, deduplicated and bounded, with a registered test. The server serves textDocument/references over a recorded reflection snapshot and advertises referencesProvider when one is loaded. A real stdio session returned the splice and the reflected declaration ranges.
This commit is contained in:
1 parent
5f41870a75
commit
98ddf08eaf
6 files changed
+122
-3
No files matched your search
@@ -61,6 +61,20 @@ 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 references
|
||||
|
||||
`reflection::references_at` collects every source link of the entity covering a
|
||||
position: the links named by its origins join all origins elsewhere that name
|
||||
the same entity id, deduplicated and bounded (registered
|
||||
`vls_reflection_tests` case, 27 total). The server serves
|
||||
`textDocument/references` over a recorded reflection snapshot and advertises
|
||||
`referencesProvider` when one is loaded. Real stdio session:
|
||||
```
|
||||
references inside: [{"range": {"start": {"line": 0, "character": 8}, "end": {"line": 0, "character": 13}}, "uri": "file:///.../main.cpp"},
|
||||
{"range": {"start": {"line": 1, "character": 5}, "end": {"line": 1, "character": 10}}, "uri": "file:///.../main.cpp"}]
|
||||
```
|
||||
All 18 native suites and all 18 CMake tests passed.
|
||||
|
||||
## December 6 versioned workspace edits in the VS Code client
|
||||
|
||||
`applyRename` accepts a full WorkspaceEdit: a `changes` map or versioned
|
||||
|
||||
Reference in new issue
Block a user