summaryrefslogtreecommitdiff
path: root/lsp-parse.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-30 16:27:31 -0500
committerpommicket <pommicket@gmail.com>2022-12-30 16:27:31 -0500
commit72624969e99d284984614a33cabb4ed9fea31a0a (patch)
tree0339461c7d415a4a8cb7fa894e6306804b9c3739 /lsp-parse.c
parentad841a324e905559ab7640956b0fbe2d2fdb3b77 (diff)
write rename request
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) {