Make clangd handle "textDocument/rename" request. The rename
functionality comes from the "local-rename" sub-tool of clang-refactor.
Currently clangd only supports local rename (only symbol occurrences in
the main file will be renamed).
Paths
| Differential D39676
[clangd] Add rename support. ClosedPublic Authored by hokein on Nov 6 2017, 1:32 AM.
Details Summary Make clangd handle "textDocument/rename" request. The rename Currently clangd only supports local rename (only symbol occurrences in
Diff Detail
Event TimelineComment Actions Impl LG apart from error handling :-)
Comment Actions Side-comment: will want to let the user know about the fact that global symbols aren't really renamed yet until global rename works? Comment Actions Just a few minor code style comments.
hokein marked 10 inline comments as done. Comment Actions
This revision is now accepted and ready to land.Nov 8 2017, 6:35 AM Closed by commit rL317780: [clangd] Add rename support. (authored by hokein). · Explain WhyNov 9 2017, 3:30 AM This revision was automatically updated to reflect the committed changes. hokein marked an inline comment as done.
Revision Contents
Diff 122222 clang-tools-extra/trunk/clangd/CMakeLists.txt
clang-tools-extra/trunk/clangd/ClangdLSPServer.h
clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
clang-tools-extra/trunk/clangd/ClangdServer.h
clang-tools-extra/trunk/clangd/ClangdServer.cpp
clang-tools-extra/trunk/clangd/ClangdUnit.h
clang-tools-extra/trunk/clangd/ClangdUnit.cpp
clang-tools-extra/trunk/clangd/Protocol.h
clang-tools-extra/trunk/clangd/Protocol.cpp
clang-tools-extra/trunk/clangd/ProtocolHandlers.h
clang-tools-extra/trunk/clangd/ProtocolHandlers.cpp
clang-tools-extra/trunk/test/clangd/initialize-params-invalid.test
clang-tools-extra/trunk/test/clangd/initialize-params.test
clang-tools-extra/trunk/test/clangd/rename.test
|