aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2024-11-25 11:48:11 -0600
committerGitHub <noreply@github.com>2024-11-25 11:48:11 -0600
commit29c72cdf4a4913c152f037865cb28c78a8930340 (patch)
treef55d404286962095163e701c5942beb3d7496628 /runtime/lua/vim/lsp/handlers.lua
parent8d55cc218cfed54136677398ca76c45987b15f29 (diff)
downloadrneovim-29c72cdf4a4913c152f037865cb28c78a8930340.tar.gz
rneovim-29c72cdf4a4913c152f037865cb28c78a8930340.tar.bz2
rneovim-29c72cdf4a4913c152f037865cb28c78a8930340.zip
fix(lsp): retrigger diagnostics request on server cancellation (#31345)
Co-authored-by: Jesse <github@jessebakker.com>
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua
index 5c28d88b38..1945040bda 100644
--- a/runtime/lua/vim/lsp/handlers.lua
+++ b/runtime/lua/vim/lsp/handlers.lua
@@ -659,7 +659,8 @@ for k, fn in pairs(M) do
})
end
- if err then
+ -- ServerCancelled errors should be propagated to the request handler
+ if err and err.code ~= protocol.ErrorCodes.ServerCancelled then
-- LSP spec:
-- interface ResponseError:
-- code: integer;