Serve call hierarchy from stock call facts
prepareCallHierarchy returns the callee definition as one item, and callHierarchy/incomingCalls groups resolved call sites by the innermost compiler-proven enclosing definition, falling back to an explicit file-level caller. The server advertises callHierarchyProvider. A real stdio session with the stock observer prepared fnv1a64 (Hash.hpp) and reported one incoming call from DocumentSnapshot.cpp.
This commit is contained in:
1 parent
555ccecd65
commit
cec4e7d717
6 files changed
+166
-2
No files matched your search
@@ -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 call hierarchy over LSP
|
||||
|
||||
`EditorDiagnostics::call_hierarchy_prepare` turns a covering occurrence with a
|
||||
definition into one `CallHierarchyItem` (callee name, definition URI and range,
|
||||
data carrying the full definition span). `call_hierarchy_incoming` feeds every
|
||||
known occurrence and definition into the bounded core
|
||||
(`vls/features/CallHierarchy.hpp`) and renders `CallHierarchyIncomingCall`
|
||||
entries grouped by the innermost enclosing definition, or explicitly at file
|
||||
level (kind File) when none contains the call. The server advertises
|
||||
`callHierarchyProvider` and serves `textDocument/prepareCallHierarchy` and
|
||||
`callHierarchy/incomingCalls`.
|
||||
|
||||
Real stdio session with the stock observer at the `fnv1a64(text)` call:
|
||||
```
|
||||
prepareCallHierarchy: 1 first: [('fnv1a64', 'Hash.hpp')]
|
||||
incomingCalls: 1 first: [('DocumentSnapshot.cpp', 1, 1)]
|
||||
```
|
||||
All 18 native suites and all 18 CMake tests passed.
|
||||
|
||||
## December 5 include updates on file rename
|
||||
|
||||
`include/vls/features/IncludeUpdate.hpp` finds quoted include directives that
|
||||
|
||||
Reference in new issue
Block a user