Serve type hierarchy from observer class facts

Occurrences carry their result type uid, decoded types are retained per
editor entry, and a bounded core selects direct bases and inverse
subtypes. The server advertises typeHierarchyProvider and serves
prepareTypeHierarchy, supertypes and subtypes. Registered feature tests
cover the selection; a real stdio session prepared DerivedA and
returned Base as supertype and DerivedA/DerivedB as subtypes of Base.
This commit is contained in:
faumaray committed 2026-12-05 23:36:05 +03:00
1 parent b1c8a4a625
commit 86b9923532
14 files changed
+357 -15

No files matched your search

+17
View File
@@ -79,6 +79,23 @@ 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 type hierarchy over LSP
Occurrences now carry their result type uid, decoded types are retained per
editor entry, and the server serves `textDocument/prepareTypeHierarchy`,
`typeHierarchy/supertypes` and `typeHierarchy/subtypes` (advertised as
`typeHierarchyProvider`). A bounded core
(`vls/features/TypeHierarchy.hpp`) selects direct bases and inverse subtypes,
with registered `vls_feature_tests` cases (104 total).
Real stdio session with `Base`, two derived classes and two factory calls:
```
prepareTypeHierarchy: [('DerivedA', 5)]
supertypes: ['Base']
subtypes: ['DerivedA', 'DerivedB']
```
All 18 native suites and all 18 CMake tests passed.
## December 5 observer-reported type hierarchy facts
The stock observer now records, for each call whose result is a class type, the