mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
fix(lsp): add textDocument/prepareRename to capability map (#15961)
This is a simple fix for #15899, as it should at least stop calling `prepareRename` on servers that don't support renaming. I imagine a better fix would be to inspect the actual value for, but that requires some plumbing changes on how capabilities are evaluated before sending requests out. Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
This commit is contained in:
parent
d5dd0aa1e6
commit
fcc11d5942
@ -41,6 +41,7 @@ lsp._request_name_to_capability = {
|
||||
['textDocument/documentSymbol'] = 'document_symbol';
|
||||
['textDocument/prepareCallHierarchy'] = 'call_hierarchy';
|
||||
['textDocument/rename'] = 'rename';
|
||||
['textDocument/prepareRename'] = 'rename';
|
||||
['textDocument/codeAction'] = 'code_action';
|
||||
['textDocument/codeLens'] = 'code_lens';
|
||||
['codeLens/resolve'] = 'code_lens_resolve';
|
||||
|
Loading…
Reference in New Issue
Block a user