Serve selection and folding ranges over LSP

A bounded snapshot-only core (vls/features/TextStructure.hpp) builds
nested selection chains (identifier, line, enclosing blocks, document)
and foldable regions (brace blocks, comments, preprocessor pairs,
include groups) while ignoring literals. The server advertises and serves
textDocument/selectionRange with bounded positions and
textDocument/foldingRange through EditorDiagnostics; registered
vls_feature_tests cases cover both.
This commit is contained in:
faumaray committed 2026-12-05 14:41:03 +03:00
1 parent 8ca3dcbf74
commit 624c24d028
12 files changed
+601 -8

No files matched your search

+3 -1
View File
@@ -70,6 +70,7 @@ void build(Void::Build::Project &project) {
"src/features/IndexNavigation.cpp",
"src/features/SignatureHelp.cpp",
"src/features/DocumentSymbols.cpp",
"src/features/TextStructure.cpp",
"src/debug/live/LiveSession.cpp",
"src/modules/ModuleWorkQueue.cpp",
"src/modules/GccScan.cpp",
@@ -148,7 +149,8 @@ void build(Void::Build::Project &project) {
auto feature_tests =
suite("vls_feature_tests",
{"tests/features/CompletionTests.cpp", "tests/features/IndexNavigationTests.cpp",
"tests/features/SignatureHelpTests.cpp", "tests/features/DocumentSymbolsTests.cpp"});
"tests/features/SignatureHelpTests.cpp", "tests/features/DocumentSymbolsTests.cpp",
"tests/features/TextStructureTests.cpp"});
auto live_worker = project.executable("vls_live_worker_fixture");
live_worker.cxx_standard(CxxStandard::Cxx26)
.sources({"tests/debug/LiveWorkerFixture.cpp"})