Serve document symbols and highlights over LSP
SymbolIndex::find_by_path exposes one document's records with the same overlay shadowing and coverage as find. EditorDiagnostics maps them to textDocument/documentSymbol, and a bounded same-file highlight core (vls/features/DocumentSymbols.hpp) backs textDocument/documentHighlight from verified occurrence facts with the ambiguous-binding rule. Both are advertised and exercised over a real stdio session with the stock observer. Record the LSP parity matrix.
This commit is contained in:
1 parent
da8003f6d4
commit
8ca3dcbf74
16 files changed
+366
-8
No files matched your search
@@ -79,6 +79,26 @@ 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 symbols and document highlights
|
||||
|
||||
`SymbolIndex::find_by_path` returns the records whose use location is in one
|
||||
path with the same overlay shadowing, deduplication, coverage and truncation as
|
||||
`find` (registered `vls_index_tests` case
|
||||
`finds_records_by_path_with_overlay_shadowing`). `EditorDiagnostics` maps it to
|
||||
`textDocument/documentSymbol` and advertises `documentSymbolProvider`.
|
||||
`include/vls/features/DocumentSymbols.hpp` adds a bounded, same-file highlight
|
||||
core (`highlights`), used by `textDocument/documentHighlight` from the verified
|
||||
occurrence facts with the ambiguous-binding rule; the server advertises
|
||||
`documentHighlightProvider`.
|
||||
|
||||
A real stdio session with the stock observer on `DocumentSnapshot.cpp`:
|
||||
```
|
||||
documentSymbol: 1 first: ['fnv1a64']
|
||||
documentHighlight: [(18, 33, 1)]
|
||||
```
|
||||
All 18 native suites and all 18 CMake tests passed. The outline currently
|
||||
contains only recorded uses (the observer reports calls), not declarations.
|
||||
|
||||
## December 5 signature help from stock occurrence facts
|
||||
|
||||
`include/vls/features/SignatureHelp.hpp` and
|
||||
|
||||
Reference in new issue
Block a user