clangd will populate #include insertions as addtionalEdits in completion items.
The code completion tests in ClangdServerTest will be added back in D46497.
Paths
| Differential D46676
[clangd] Remove LSP command-based #include insertion. ClosedPublic Authored by ioeric on May 10 2018, 12:20 AM.
Details Summary clangd will populate #include insertions as addtionalEdits in completion items. The code completion tests in ClangdServerTest will be added back in D46497.
Diff Detail
Event TimelineHerald added subscribers: cfe-commits, jkorous, MaskRay, klimek. · View Herald TranscriptMay 10 2018, 12:20 AM Comment Actions This LG, but we should first roll out the additionalEdits change. Comment Actions
You are right ;) I got the dependency reversed. My plan was to land this and the other patch at the "same" time. ioeric removed a child revision: D46497: [clangd] Populate #include insertions as additional edits in completion items..May 11 2018, 3:57 AM ioeric added a parent revision: D46497: [clangd] Populate #include insertions as additional edits in completion items..
This revision is now accepted and ready to land.May 11 2018, 7:10 AM Closed by commit rL332362: [clangd] Remove LSP command-based #include insertion. (authored by ioeric). · Explain WhyMay 15 2018, 8:27 AM This revision was automatically updated to reflect the committed changes. ioeric marked an inline comment as done.
Revision Contents
Diff 146078 clangd/ClangdLSPServer.cpp
clangd/ClangdServer.h
clangd/ClangdServer.cpp
clangd/CodeComplete.cpp
clangd/Protocol.h
clangd/Protocol.cpp
test/clangd/initialize-params-invalid.test
test/clangd/initialize-params.test
test/clangd/insert-include.test
unittests/clangd/ClangdTests.cpp
|
Do we test the same thing somewhere else (e.g. code completion) in one of the dependent changes?
Maybe it's worth noting in the commit description that this test was not removed completely, but instead moved to <new-test-name-here>?