refactor(lua): consistent use of local aliases

This commit is contained in:
Christian Clason
2025-08-26 15:31:16 +02:00
committed by Christian Clason
parent a33284c2c0
commit c10e36fc01
27 changed files with 59 additions and 59 deletions

View File

@@ -498,7 +498,7 @@ function M._workspace_diagnostics(opts)
local function handler(error, result, ctx)
-- Check for retrigger requests on cancellation errors.
-- Unless `retriggerRequest` is explicitly disabled, try again.
if error ~= nil and error.code == lsp.protocol.ErrorCodes.ServerCancelled then
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))
client:request(ms.workspace_diagnostic, ctx.params, handler)