From dc1888fcfbba1f969ddc01100c466057dccbb58f Mon Sep 17 00:00:00 2001 From: Will Lillis Date: Tue, 11 Mar 2025 10:22:20 -0400 Subject: 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 --- runtime/doc/lsp.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/doc') diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index fd0df42fe4..f13a17cbef 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1750,13 +1750,13 @@ on_diagnostic({error}, {result}, {ctx}) • {ctx} (`lsp.HandlerContext`) *vim.lsp.diagnostic.on_publish_diagnostics()* -on_publish_diagnostics({_}, {result}, {ctx}) +on_publish_diagnostics({_}, {params}, {ctx}) |lsp-handler| for the method "textDocument/publishDiagnostics" See |vim.diagnostic.config()| for configuration options. Parameters: ~ - • {result} (`lsp.PublishDiagnosticsParams`) + • {params} (`lsp.PublishDiagnosticsParams`) • {ctx} (`lsp.HandlerContext`) -- cgit