mirror of
https://github.com/mfussenegger/nvim-jdtls
synced 2024-09-16 14:34:13 +02:00
Don't set line diagnostics for code action params
Not really needed for the cases where the code is triggered and it's deprecated in neovim nightly
This commit is contained in:
parent
6bfd159158
commit
6e99fc8076
1 changed files with 2 additions and 8 deletions
|
@ -840,17 +840,11 @@ end
|
|||
|
||||
|
||||
local function make_code_action_params(from_selection)
|
||||
local params
|
||||
if from_selection then
|
||||
params = vim.lsp.util.make_given_range_params()
|
||||
return vim.lsp.util.make_given_range_params()
|
||||
else
|
||||
params = vim.lsp.util.make_range_params()
|
||||
return vim.lsp.util.make_range_params()
|
||||
end
|
||||
local bufnr = api.nvim_get_current_buf()
|
||||
params.context = {
|
||||
diagnostics = vim.lsp.diagnostic.get_line_diagnostics(bufnr),
|
||||
}
|
||||
return params
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue