Handle workspace file-operation notifications
The server advertises didCreate/didRename/didDelete file operations with file-scheme filters. A bounded core converts notifications into canonical filesystem changes (rename as old-gone/new-present, non-file URIs ignored, invalid URIs rejected) with registered tests, and EditorDiagnostics invalidates every dependent index context for changed or removed paths before re-queueing open documents. A real stdio session observed the index become incomplete after a deleted header, and a malformed notification left the server answering.
This commit is contained in:
1 parent
130cb57a7f
commit
158125ace5
12 files changed
+248
-12
No files matched your search
@@ -74,6 +74,7 @@ void build(Void::Build::Project &project) {
|
||||
"src/features/CodeActions.cpp",
|
||||
"src/features/SemanticTokens.cpp",
|
||||
"src/features/InlayHints.cpp",
|
||||
"src/features/FileOperations.cpp",
|
||||
"src/debug/live/LiveSession.cpp",
|
||||
"src/modules/ModuleWorkQueue.cpp",
|
||||
"src/modules/GccScan.cpp",
|
||||
@@ -154,7 +155,8 @@ void build(Void::Build::Project &project) {
|
||||
{"tests/features/CompletionTests.cpp", "tests/features/IndexNavigationTests.cpp",
|
||||
"tests/features/SignatureHelpTests.cpp", "tests/features/DocumentSymbolsTests.cpp",
|
||||
"tests/features/TextStructureTests.cpp", "tests/features/CodeActionsTests.cpp",
|
||||
"tests/features/SemanticTokensTests.cpp", "tests/features/InlayHintsTests.cpp"});
|
||||
"tests/features/SemanticTokensTests.cpp", "tests/features/InlayHintsTests.cpp",
|
||||
"tests/features/FileOperationsTests.cpp"});
|
||||
auto live_worker = project.executable("vls_live_worker_fixture");
|
||||
live_worker.cxx_standard(CxxStandard::Cxx26)
|
||||
.sources({"tests/debug/LiveWorkerFixture.cpp"})
|
||||
|
||||
Reference in new issue
Block a user