diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2019-10-09 12:48:41 +0000 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2019-10-09 12:48:41 +0000 |
commit | 1bb91093e7c372293d7a0bf78e0423ddf5b1747c (patch) | |
tree | 9d8ffa1e22b072c61329b7b70f60a680f8de0b5d | |
parent | 64a83bb25335a8fd1d8de22f2895531f34570498 (diff) | |
download | bcm5719-llvm-1bb91093e7c372293d7a0bf78e0423ddf5b1747c.tar.gz bcm5719-llvm-1bb91093e7c372293d7a0bf78e0423ddf5b1747c.zip |
[clangd] Propagate context into reply handlers
llvm-svn: 374163
-rw-r--r-- | clang-tools-extra/clangd/ClangdLSPServer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/ClangdLSPServer.h b/clang-tools-extra/clangd/ClangdLSPServer.h index 3f9f1cc9c90..5664efd388f 100644 --- a/clang-tools-extra/clangd/ClangdLSPServer.h +++ b/clang-tools-extra/clangd/ClangdLSPServer.h @@ -157,7 +157,7 @@ private: void call(StringRef Method, llvm::json::Value Params, Callback<Response> CB) { // Wrap the callback with LSP conversion and error-handling. auto HandleReply = - [CB = std::move(CB)]( + [CB = std::move(CB), Ctx = Context::current().clone()]( llvm::Expected<llvm::json::Value> RawResponse) mutable { Response Rsp; if (!RawResponse) { |