mirror of
https://github.com/neovim/neovim.git
synced 2026-04-02 05:39:26 +00:00
refactor(lsp): rename on_publish_diagnostics parameter #32776
* fix(lsp): rename `on_publish_diagnostics` parameter: result->params * fix(colors): specify local var type to address lint failure
This commit is contained in:
@@ -237,10 +237,10 @@ end
|
||||
--- See |vim.diagnostic.config()| for configuration options.
|
||||
---
|
||||
---@param _ lsp.ResponseError?
|
||||
---@param result lsp.PublishDiagnosticsParams
|
||||
---@param params lsp.PublishDiagnosticsParams
|
||||
---@param ctx lsp.HandlerContext
|
||||
function M.on_publish_diagnostics(_, result, ctx)
|
||||
handle_diagnostics(result.uri, ctx.client_id, result.diagnostics, false)
|
||||
function M.on_publish_diagnostics(_, params, ctx)
|
||||
handle_diagnostics(params.uri, ctx.client_id, params.diagnostics, false)
|
||||
end
|
||||
|
||||
--- |lsp-handler| for the method "textDocument/diagnostic"
|
||||
|
||||
Reference in New Issue
Block a user