diff options
author | Johan Vikstrom <jvikstrom@google.com> | 2019-07-04 07:53:12 +0000 |
---|---|---|
committer | Johan Vikstrom <jvikstrom@google.com> | 2019-07-04 07:53:12 +0000 |
commit | a848dab7a31d818da3d454e7a52c811d4a10fd21 (patch) | |
tree | 5d8b9a64bb8d141d432d6657a6dc3c359ae49d28 /clang-tools-extra/clangd/ClangdLSPServer.h | |
parent | 63e62006cff71d3a00c3243067225259e7c2ea6a (diff) | |
download | bcm5719-llvm-a848dab7a31d818da3d454e7a52c811d4a10fd21.tar.gz bcm5719-llvm-a848dab7a31d818da3d454e7a52c811d4a10fd21.zip |
[clangd] Emit publishSemanticHighlighting in LSP if enabled
Summary: Emit publishSemanticHighlighting in LSP if enabled
Reviewers: hokein, kadircet
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D63919
llvm-svn: 365111
Diffstat (limited to 'clang-tools-extra/clangd/ClangdLSPServer.h')
-rw-r--r-- | clang-tools-extra/clangd/ClangdLSPServer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/ClangdLSPServer.h b/clang-tools-extra/clangd/ClangdLSPServer.h index 2b2d9c0b008..ae438ddbe18 100644 --- a/clang-tools-extra/clangd/ClangdLSPServer.h +++ b/clang-tools-extra/clangd/ClangdLSPServer.h @@ -55,6 +55,8 @@ private: // Implement DiagnosticsConsumer. void onDiagnosticsReady(PathRef File, std::vector<Diag> Diagnostics) override; void onFileUpdated(PathRef File, const TUStatus &Status) override; + void onHighlightingsReady(PathRef File, + std::vector<HighlightingToken> Highlightings) override; // LSP methods. Notifications have signature void(const Params&). // Calls have signature void(const Params&, Callback<Response>). @@ -115,6 +117,9 @@ private: void reparseOpenedFiles(); void applyConfiguration(const ConfigurationSettings &Settings); + /// Sends a "publishSemanticHighlighting" notification to the LSP client. + void publishSemanticHighlighting(SemanticHighlightingParams Params); + /// Sends a "publishDiagnostics" notification to the LSP client. void publishDiagnostics(const URIForFile &File, std::vector<clangd::Diagnostic> Diagnostics); |