forked from OSchip/llvm-project
[clangd] Remember to serialize AnyScope in FuzzyFindRequest json.
llvm-svn: 346648
This commit is contained in:
parent
2d4effb25c
commit
961024f174
|
@ -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<uint32_t>::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}},
|
||||
|
|
Loading…
Reference in New Issue