mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(diagnostic): don't convert diagnostic table twice
The recursive implementation of vim.lsp.diagnostic.get() applied `diagnostic_vim_to_lsp` twice, and the second time gave wrong results because of the unexpected format. Fixes https://github.com/neovim/neovim/issues/15689
This commit is contained in:
parent
3e230da90b
commit
22d146760e
@ -265,7 +265,7 @@ function M.get(bufnr, client_id, predicate)
|
|||||||
table.insert(all_diagnostics, diagnostic)
|
table.insert(all_diagnostics, diagnostic)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
return diagnostic_vim_to_lsp(all_diagnostics)
|
return all_diagnostics
|
||||||
end
|
end
|
||||||
|
|
||||||
local namespace = M.get_namespace(client_id)
|
local namespace = M.get_namespace(client_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user