mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 13:56:05 +00:00
fix(lsp): use LSP method type in more places (#36069)
This commit is contained in:
@@ -263,6 +263,7 @@ function M.on_diagnostic(error, result, ctx)
|
||||
if error ~= nil and error.code == protocol.ErrorCodes.ServerCancelled then
|
||||
if error.data == nil or error.data.retriggerRequest ~= false then
|
||||
local client = assert(lsp.get_client_by_id(ctx.client_id))
|
||||
---@diagnostic disable-next-line: param-type-mismatch
|
||||
client:request(ctx.method, ctx.params)
|
||||
end
|
||||
return
|
||||
|
Reference in New Issue
Block a user