fix(lsp): use LSP method type in more places (#36069)

This commit is contained in:
Maria Solano
2025-10-07 08:17:40 -07:00
committed by GitHub
parent a4006360f1
commit 006101360d
5 changed files with 9 additions and 8 deletions

View File

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