aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/diagnostic.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-03-06 10:43:43 +0000
committerLewis Russell <me@lewisr.dev>2024-03-06 11:12:41 +0000
commit3e016fa8d4f797345d55f6006c42026abedb6c4e (patch)
tree80ee4e2fe5d93f5c33b754a4ec2b4dfba7f5c363 /runtime/lua/vim/lsp/diagnostic.lua
parent8149bd089e15043576b1e6588babd9c121740f1a (diff)
downloadrneovim-3e016fa8d4f797345d55f6006c42026abedb6c4e.tar.gz
rneovim-3e016fa8d4f797345d55f6006c42026abedb6c4e.tar.bz2
rneovim-3e016fa8d4f797345d55f6006c42026abedb6c4e.zip
fix(lsp): actually send diagnostic-tags back to the server
Fixes #27318
Diffstat (limited to 'runtime/lua/vim/lsp/diagnostic.lua')
-rw-r--r--runtime/lua/vim/lsp/diagnostic.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/diagnostic.lua b/runtime/lua/vim/lsp/diagnostic.lua
index e4620897ac..08cea13548 100644
--- a/runtime/lua/vim/lsp/diagnostic.lua
+++ b/runtime/lua/vim/lsp/diagnostic.lua
@@ -136,7 +136,7 @@ end
--- @param diagnostic vim.Diagnostic
--- @return lsp.DiagnosticTag[]?
-local function tags_vim_to_vim(diagnostic)
+local function tags_vim_to_lsp(diagnostic)
if not diagnostic._tags then
return
end
@@ -173,7 +173,7 @@ local function diagnostic_vim_to_lsp(diagnostics)
message = diagnostic.message,
source = diagnostic.source,
code = diagnostic.code,
- tags = tags_vim_to_vim(diagnostics),
+ tags = tags_vim_to_lsp(diagnostic),
}, diagnostic.user_data and (diagnostic.user_data.lsp or {}) or {})
end, diagnostics)
end