From 961024f17451042444a2e6f49a6dcdee9d28f923 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Mon, 12 Nov 2018 12:24:08 +0000 Subject: [PATCH] [clangd] Remember to serialize AnyScope in FuzzyFindRequest json. llvm-svn: 346648 --- clang-tools-extra/clangd/index/Index.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/index/Index.cpp b/clang-tools-extra/clangd/index/Index.cpp index 69fe771467d2..d9a8566e7d8b 100644 --- a/clang-tools-extra/clangd/index/Index.cpp +++ b/clang-tools-extra/clangd/index/Index.cpp @@ -207,7 +207,7 @@ bool fromJSON(const json::Value &Parameters, FuzzyFindRequest &Request) { int64_t Limit; bool OK = O && O.map("Query", Request.Query) && O.map("Scopes", Request.Scopes) && - O.map("Limit", Limit) && + O.map("AnyScope", Request.AnyScope) && O.map("Limit", Limit) && O.map("RestrictForCodeCompletion", Request.RestrictForCodeCompletion) && O.map("ProximityPaths", Request.ProximityPaths); if (OK && Limit <= std::numeric_limits::max()) @@ -219,6 +219,7 @@ json::Value toJSON(const FuzzyFindRequest &Request) { return json::Object{ {"Query", Request.Query}, {"Scopes", json::Array{Request.Scopes}}, + {"AnyScope", Request.AnyScope}, {"Limit", Request.Limit}, {"RestrictForCodeCompletion", Request.RestrictForCodeCompletion}, {"ProximityPaths", json::Array{Request.ProximityPaths}},