Closed lbrayner closed 1 year ago
It's not necessary to set the codeActionProviders on the server_capabilities.
In fact you should never have to mess with the server_capabilities unless you know what you're doing and want to opt out of something.
There was a regression in regards to code-action resolving in neovim master but that was fixed a day or two later.
@mfussenegger got it. Yes, https://github.com/neovim/neovim/commit/dd3fa645735539c75b72dc1b0114278b5fa57f7f fixes the issue I was having, no need to mess with server_capabilities
.
Problem Statement
Most code actions won't work if using a recent build of
eclipse.jdt.ls
(Neovim 0.9.0+).This is because there are no
edit
orcommand
properties in the actions returned by the server. To get them, you have to call"codeAction/resolve"
.Ideas or possible solutions
I think it would be useful to include in the README that one needs to set
server_capabilities.codeActionProvider.resolveProvider
to true if using a recent build ofeclipse.jdt.ls
(and Neovim 0.9.0+).In your
LspAttach
callback or your configuration'son_attach
callback: