diff options
author | Will Lillis <will.lillis24@gmail.com> | 2025-03-11 10:22:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-11 07:22:20 -0700 |
commit | dc1888fcfbba1f969ddc01100c466057dccbb58f (patch) | |
tree | b4452e986eb8555b9c5a3172d3b06e349559abcd /runtime/lua | |
parent | 8b5a0a00c8cfe776c4227862c3fb32a07d154663 (diff) | |
download | rneovim-dc1888fcfbba1f969ddc01100c466057dccbb58f.tar.gz rneovim-dc1888fcfbba1f969ddc01100c466057dccbb58f.tar.bz2 rneovim-dc1888fcfbba1f969ddc01100c466057dccbb58f.zip |
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
Diffstat (limited to 'runtime/lua')
-rw-r--r-- | runtime/lua/vim/lsp/diagnostic.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/diagnostic.lua b/runtime/lua/vim/lsp/diagnostic.lua index fe24928a69..20c3882d23 100644 --- a/runtime/lua/vim/lsp/diagnostic.lua +++ b/runtime/lua/vim/lsp/diagnostic.lua @@ -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" |