[PATCH] D68324: [clangd] Always send file URIs to editors
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 2 02:11:24 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL373435: [clangd] Always send file URIs to editors (authored by kadircet, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D68324?vs=222772&id=222774#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68324/new/
https://reviews.llvm.org/D68324
Files:
clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
Index: clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
===================================================================
--- clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
+++ clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
@@ -700,7 +700,7 @@
WorkspaceEdit WE;
WE.changes.emplace();
for (const auto &It : R->ApplyEdits) {
- (*WE.changes)[URI::create(It.first()).toString()] =
+ (*WE.changes)[URI::createFile(It.first()).toString()] =
It.second.asTextEdits();
}
// ApplyEdit will take care of calling Reply().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68324.222774.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191002/5b2e3b46/attachment.bin>
More information about the cfe-commits
mailing list