diff options
author | pommicket <pommicket@gmail.com> | 2022-12-30 16:27:31 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-30 16:27:31 -0500 |
commit | 72624969e99d284984614a33cabb4ed9fea31a0a (patch) | |
tree | 0339461c7d415a4a8cb7fa894e6306804b9c3739 /lsp-parse.c | |
parent | ad841a324e905559ab7640956b0fbe2d2fdb3b77 (diff) |
write rename request
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 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) { |