diff options
author | pommicket <pommicket@gmail.com> | 2022-12-30 10:17:42 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-30 10:17:42 -0500 |
commit | 61db5a1a07f4fbe953d7cab9b6714fe5157a1265 (patch) | |
tree | b06e2590429dcd108bcd00182fbb09cd250a0d38 /lsp-parse.c | |
parent | a0f8332da674d452f7ae4f84f01d4682d464c9b2 (diff) |
start workspace/symbol
Diffstat (limited to 'lsp-parse.c')
-rw-r--r-- | lsp-parse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lsp-parse.c b/lsp-parse.c index a6ef49f..42a3c7b 100644 --- a/lsp-parse.c +++ b/lsp-parse.c @@ -161,6 +161,12 @@ static void parse_capabilities(LSP *lsp, const JSON *json, JSONObject capabiliti cap->definition_support = true; } + // check for workspace/symbol support + JSONValue workspace_symbol_value = json_object_get(json, capabilities, "workspaceSymbolProvider"); + if (workspace_symbol_value.type != JSON_UNDEFINED) { + cap->workspace_symbols_support = true; + } + JSONObject workspace = json_object_get_object(json, capabilities, "workspace"); // check WorkspaceFoldersServerCapabilities JSONObject workspace_folders = json_object_get_object(json, workspace, "workspaceFolders"); |