From 1bb91093e7c372293d7a0bf78e0423ddf5b1747c Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Wed, 9 Oct 2019 12:48:41 +0000 Subject: [PATCH] [clangd] Propagate context into reply handlers llvm-svn: 374163 --- clang-tools-extra/clangd/ClangdLSPServer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.7.4