summaryrefslogtreecommitdiff
path: root/lsp-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lsp-parse.c')
-rw-r--r--lsp-parse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lsp-parse.c b/lsp-parse.c
index a816ec9..7eb8460 100644
--- a/lsp-parse.c
+++ b/lsp-parse.c
@@ -158,6 +158,12 @@ static void parse_capabilities(LSP *lsp, const JSON *json, JSONObject capabiliti
cap->definition_support = true;
}
+ // check for textDocument/rename support
+ JSONValue rename_value = json_object_get(json, capabilities, "renameProvider");
+ if (rename_value.type != JSON_UNDEFINED) {
+ cap->rename_support = true;
+ }
+
// check for workspace/symbol support
JSONValue workspace_symbol_value = json_object_get(json, capabilities, "workspaceSymbolProvider");
if (workspace_symbol_value.type != JSON_UNDEFINED) {