[clangd] Enable snippet completion based on client capabilities.
authorIlya Biryukov <ibiryukov@google.com>
Thu, 15 Feb 2018 14:32:57 +0000 (14:32 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Thu, 15 Feb 2018 14:32:57 +0000 (14:32 +0000)
commit23bc73b6263c77894785948c13e7a91416ec5783
tree619cf7e7279c9e32d80d6c84e38de1d466250c39
parent6353ecb08a60e96bb42f7c63b31c3139e2fd95ec
[clangd] Enable snippet completion based on client capabilities.

Summary: And remove -enable-snippets flag.

Reviewers: hokein, ioeric, sammccall

Reviewed By: ioeric

Subscribers: klimek, jkorous-apple, cfe-commits

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

llvm-svn: 325242
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/Protocol.cpp
clang-tools-extra/clangd/Protocol.h
clang-tools-extra/clangd/tool/ClangdMain.cpp
clang-tools-extra/test/clangd/completion-snippets.test [new file with mode: 0644]