[clangd] Handle InitializeParams and store rootUri
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Wed, 27 Sep 2017 15:31:17 +0000 (15:31 +0000)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Wed, 27 Sep 2017 15:31:17 +0000 (15:31 +0000)
commit37de9718d062fd866a6dc7787f14869692b882dd
tree6ba98239cfd3b55ec46ab43426c4a388e21f8155
parent0f9b4773c1c68886e63161cd78f4d576db632eb8
[clangd] Handle InitializeParams and store rootUri

Summary:
The root Uri is the workspace location and will be useful in the context of
indexing. We could also add more things to InitializeParams in order to
configure Clangd for C/C++ sepecific extensions.

Reviewers: ilya-biryukov, bkramer, krasimir, Nebiroth

Reviewed By: ilya-biryukov

Subscribers: ilya-biryukov

Tags: #clang-tools-extra

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

llvm-svn: 314309
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/clangd/Protocol.cpp
clang-tools-extra/clangd/Protocol.h
clang-tools-extra/clangd/ProtocolHandlers.cpp
clang-tools-extra/clangd/ProtocolHandlers.h
clang-tools-extra/test/clangd/initialize-params-invalid.test [new file with mode: 0644]
clang-tools-extra/test/clangd/initialize-params.test [new file with mode: 0644]