mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
refactor(lua): consistent use of local aliases
This commit is contained in:
committed by
Christian Clason
parent
a33284c2c0
commit
c10e36fc01
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user