[clangd] Support textEdit in addition to insertText.
authorKadir Cetinkaya <kadircet@google.com>
Mon, 13 Aug 2018 08:23:01 +0000 (08:23 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Mon, 13 Aug 2018 08:23:01 +0000 (08:23 +0000)
commita9c9d000162b2c54a11091a42fe67e28ef32995d
treee21672cc5b1d1578ee305d9b604ae6f14262d339
parent9b9c27490d24584bcb282f5ae873febe1612268a
[clangd] Support textEdit in addition to insertText.

Summary:
Completion replies contains textEdits as well. Note that this change
relies on https://reviews.llvm.org/D50443.

Reviewers: ilya-biryukov

Reviewed By: ilya-biryukov

Subscribers: mgrang, ioeric, MaskRay, jkorous, arphaman, cfe-commits

Differential Revision: https://reviews.llvm.org/D50449

llvm-svn: 339543
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/CodeComplete.h
clang-tools-extra/clangd/SourceCode.cpp
clang-tools-extra/clangd/SourceCode.h
clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp
clang-tools-extra/unittests/clangd/SourceCodeTests.cpp