From: Kadir Cetinkaya Date: Wed, 9 Oct 2019 12:48:41 +0000 (+0000) Subject: [clangd] Propagate context into reply handlers X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bb91093e7c372293d7a0bf78e0423ddf5b1747c;p=platform%2Fupstream%2Fllvm.git [clangd] Propagate context into reply handlers llvm-svn: 374163 --- diff --git a/clang-tools-extra/clangd/ClangdLSPServer.h b/clang-tools-extra/clangd/ClangdLSPServer.h index 3f9f1cc..5664efd 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 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 RawResponse) mutable { Response Rsp; if (!RawResponse) {