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

+3 -1
View File
@@ -80,6 +80,7 @@ void build(Void::Build::Project &project) {
"src/features/CodeLens.cpp",
"src/features/DocumentLinks.cpp",
"src/features/Formatting.cpp",
"src/features/TypeHierarchy.cpp",
"src/debug/live/LiveSession.cpp",
"src/modules/ModuleWorkQueue.cpp",
"src/modules/GccScan.cpp",
@@ -163,7 +164,8 @@ void build(Void::Build::Project &project) {
"tests/features/SemanticTokensTests.cpp", "tests/features/InlayHintsTests.cpp",
"tests/features/FileOperationsTests.cpp", "tests/features/IncludeUpdateTests.cpp",
"tests/features/CallHierarchyTests.cpp", "tests/features/CodeLensTests.cpp",
"tests/features/DocumentLinksTests.cpp", "tests/features/FormattingTests.cpp"});
"tests/features/DocumentLinksTests.cpp", "tests/features/FormattingTests.cpp",
"tests/features/TypeHierarchyTests.cpp"});
auto live_worker = project.executable("vls_live_worker_fixture");
live_worker.cxx_standard(CxxStandard::Cxx26)
.sources({"tests/debug/LiveWorkerFixture.cpp"})