mirror of
https://github.com/neovim/neovim.git
synced 2026-02-01 09:34:29 +00:00
feat(lsp): provide feedback if server can't compute rename result (#19546)
Without some form of feedback a user cannot easily tell if the server is still computing the result (which can take a while in large projects), or whether the server couldn't compute the rename result.
This commit is contained in:
committed by
GitHub
parent
888f12858a
commit
f5d558c8ea
@@ -257,6 +257,7 @@ end)
|
||||
--see: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_rename
|
||||
M['textDocument/rename'] = function(_, result, ctx, _)
|
||||
if not result then
|
||||
vim.notify("Language server couldn't provide rename result", vim.log.levels.INFO)
|
||||
return
|
||||
end
|
||||
local client = vim.lsp.get_client_by_id(ctx.client_id)
|
||||
|
||||
Reference in New Issue
Block a user