From 66367583a3b57e37e9198838222f45d99e77d8ae Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 30 Dec 2022 12:42:32 -0500 Subject: definitions menu, but it's acting weird --- lsp-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lsp-parse.c') diff --git a/lsp-parse.c b/lsp-parse.c index c98ae85..f720d12 100644 --- a/lsp-parse.c +++ b/lsp-parse.c @@ -569,7 +569,7 @@ static bool parse_symbol_information(LSP *lsp, const JSON *json, JSONValue value static bool parse_workspace_symbols(LSP *lsp, const JSON *json, LSPResponse *response) { LSPResponseWorkspaceSymbols *syms = &response->data.workspace_symbols; - JSONArray result = json_force_array(json_root(json)); + JSONArray result = json_force_array(json_get(json, "result")); arr_set_len(syms->symbols, result.len); for (size_t i = 0; i < result.len; ++i) { LSPSymbolInformation *info = &syms->symbols[i]; -- cgit v1.2.3