Update includes when files are renamed
The server advertises willRename and answers workspace/willRenameFiles with a WorkspaceEdit. A bounded core resolves quoted includes against the document directory and replaces only the spelling (relative stays relative, absolute stays absolute, angle includes untouched), with registered tests. EditorDiagnostics converts the byte edits to negotiated positions for every open overlay; a real stdio session returned the extra.hpp -> renamed.hpp edit.
This commit is contained in:
1 parent
158125ace5
commit
b0b48d961c
12 files changed
+277
-5
No files matched your search
@@ -75,6 +75,7 @@ void build(Void::Build::Project &project) {
|
||||
"src/features/SemanticTokens.cpp",
|
||||
"src/features/InlayHints.cpp",
|
||||
"src/features/FileOperations.cpp",
|
||||
"src/features/IncludeUpdate.cpp",
|
||||
"src/debug/live/LiveSession.cpp",
|
||||
"src/modules/ModuleWorkQueue.cpp",
|
||||
"src/modules/GccScan.cpp",
|
||||
@@ -156,7 +157,7 @@ void build(Void::Build::Project &project) {
|
||||
"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/FileOperationsTests.cpp"});
|
||||
"tests/features/FileOperationsTests.cpp", "tests/features/IncludeUpdateTests.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