mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
Neovim already passed `data` element from published diagnostic to code action, but failed to announce it in client capabilities. Here is the test that shows that `data` element is returned by `vim.lsp.diagnostic.get_line_diagnostics()`:f56c184809/test/functional/plugin/lsp/diagnostic_spec.lua (L103-L115)
and then `get_line_diagnostics()` is used to construct the context for code action request:f56c184809/runtime/lua/vim/lsp/buf.lua (L742)