-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lsp doesn't handle code action refactor.extract.* #6702
Comments
This could probably re-use the tree UI component (#5768) |
Helix does support the kind field of code actions and we do treat them as hierarchal. This was implemented in #4134. The only difference to VSCode is that they show headings when a different kind starts while we do not. I don't think we should display these headings, they serve no real purpose and make the code action popup more drawn out/harder to scan. The LSP standard says nowhere that these should be displayed in a hierarchical manner (and arguably with VSCode being the reference implementation that was never intended). It just lets the client know how this information can be interpreted. The only other place where the code action kind has any application is when filtering code actions in some form. For example in #6486. However, currently, no such config option exists in helix yet so I don't see anything missing from helix. |
what I mean but doesn't handle it, is that helix doesn't seem to respond to it at all (it does show as an option in the code action menu but when I click nothing happens) To reproduce:
Expected behavior: Note: same thing works with rust-analyzer but in this case it uses refactor.extract and helix seems to understand it log after clicking the code action (uses refactor.extract.function):
But no answer from helix helix 23.03 |
Ah now I see, I guess I was not clear at all , this is not what I meant, see the above comment |
is this #5118? seems like there is no edit so I assume it's because it is using code action resolve. |
Yep you're right I forget about this |
helix can handle currently code action like refactor.extract (used by rust analyzer for example) but the spec says that kind in code action are a hierarchical list of identifiers separated by
.
, this is not handled by helixexample deno lsp which uses this https://github.com/denoland/deno/blob/015eb4ef9c99526486e372489dcc50feb7b39ea6/cli/lsp/refactor.rs#L23
log
The text was updated successfully, but these errors were encountered: