fix(lsp): retrigger diagnostics request on server cancellation (#31345)

Co-authored-by: Jesse <github@jessebakker.com>
This commit is contained in:
Gregory Anders
2024-11-25 11:48:11 -06:00
committed by GitHub
parent 8d55cc218c
commit 29c72cdf4a
7 changed files with 120 additions and 5 deletions

View File

@@ -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;