helix-mirror/helix-lsp/src
Robin Jadoul 33b7483db5
Send active diagnostics to LSP when requesting code actions. (#2005)
* Send active diagnostics to LSP when requesting code actions.

This allows for e.g. clangd to properly send the quickfix code actions
corresponding to those diagnostics as options.
The LSP spec v3.16.0 introduced an opaque `data` member that would allow
the server to persist arbitrary data between the diagnostic and the code
actions request, but this is not supported yet by this commit.

* Reuse existing range_to_lsp_range functionality
2022-04-17 12:05:23 +09:00
..
client.rs Send active diagnostics to LSP when requesting code actions. (#2005) 2022-04-17 12:05:23 +09:00
lib.rs Send active diagnostics to LSP when requesting code actions. (#2005) 2022-04-17 12:05:23 +09:00
transport.rs lsp: This doesn't need to be a mutable reference 2021-09-06 15:25:46 +09:00