diff options
author | Utkarsh Saxena <usx@google.com> | 2019-09-24 13:38:33 +0000 |
---|---|---|
committer | Utkarsh Saxena <usx@google.com> | 2019-09-24 13:38:33 +0000 |
commit | 55925da4c98b3ddac0f28ccc322e8ee52553e022 (patch) | |
tree | 5bd9e806a55853ac2b3b1b89b8e68e1fae250ecc /clang-tools-extra/clangd/ClangdLSPServer.h | |
parent | 3a415c20ad72f061c38282a49349c6ea31105ff2 (diff) | |
download | bcm5719-llvm-55925da4c98b3ddac0f28ccc322e8ee52553e022.tar.gz bcm5719-llvm-55925da4c98b3ddac0f28ccc322e8ee52553e022.zip |
[clangd] Add semantic selection to ClangdLSPServer.
Summary:
This adds semantic selection to the LSP Server.
Adds support for serialization of input request and the output reply.
Also adds regression tests for the feature.
Currently we do not support multi cursor.The LSP Server only accepts single position in the request as opposed to many position in the spec.
Spec:
https://github.com/microsoft/language-server-protocol/blob/dbaeumer/3.15/specification.md#textDocument_selectionRange
Reviewers: hokein
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D67720
llvm-svn: 372753
Diffstat (limited to 'clang-tools-extra/clangd/ClangdLSPServer.h')
-rw-r--r-- | clang-tools-extra/clangd/ClangdLSPServer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/ClangdLSPServer.h b/clang-tools-extra/clangd/ClangdLSPServer.h index 4e7e042bb9a..3f9f1cc9c90 100644 --- a/clang-tools-extra/clangd/ClangdLSPServer.h +++ b/clang-tools-extra/clangd/ClangdLSPServer.h @@ -107,6 +107,8 @@ private: void onChangeConfiguration(const DidChangeConfigurationParams &); void onSymbolInfo(const TextDocumentPositionParams &, Callback<std::vector<SymbolDetails>>); + void onSelectionRange(const SelectionRangeParams &, + Callback<std::vector<SelectionRange>>); std::vector<Fix> getFixes(StringRef File, const clangd::Diagnostic &D); |