summaryrefslogtreecommitdiff
path: root/lsp-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lsp-parse.c')
-rw-r--r--lsp-parse.c2
1 files changed, 1 insertions, 1 deletions
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];