aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2022-07-27 18:56:27 +0200
committerGitHub <noreply@github.com>2022-07-27 18:56:27 +0200
commitf5d558c8ea2e0637f105521806edc8a27d549847 (patch)
tree175d69e34e5c3cbcbc1d26b023625293e8155c86 /runtime/lua/vim/lsp/handlers.lua
parent888f12858add8b16ce7d83129cbf20670df38f37 (diff)
downloadrneovim-f5d558c8ea2e0637f105521806edc8a27d549847.tar.gz
rneovim-f5d558c8ea2e0637f105521806edc8a27d549847.tar.bz2
rneovim-f5d558c8ea2e0637f105521806edc8a27d549847.zip
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.
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua
index cfc35f0b51..1e6ac8dddf 100644
--- a/runtime/lua/vim/lsp/handlers.lua
+++ b/runtime/lua/vim/lsp/handlers.lua
@@ -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)