-
Notifications
You must be signed in to change notification settings - Fork 185
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
feat(code actions): display code actions within a quick panel #1611
feat(code actions): display code actions within a quick panel #1611
Conversation
|
I will try this PR today 🙂 |
I'm not sure I agree with that because the focus goes back to the cursor and so there shouldn't be any confusion or disorientation IMO. The fact that you can filter items is also a plus and usability improvement. I've only used this new way for a minute or so, so far. |
Yea I understand the "fear" of losing some context. I must say in my case it's much more comfortable, even if I was working with a layout more or less like the one you gave in your example (small window size, sidebar opened etc) this wont annoy me as when I open code actions, I know where (in the code) I call it and for what purpose so it wont bother me. I was also looking in a way to use the completion list (so we have keybindings, consistent styling and no code overflow) but my guess is that its only purpose is: completion? So we can't add a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a strong opinion about this. All in all looks good to me.
I do like the ability to filter items. (but I still think that visually the context menu is more suited for this kind of stuff) So lets merge this. We can act later based on the feedback from other people. |
BTW, thanks for the PR :) |
auto save + auto format on save + LSP switching code action from inline context menu to command palette is not playing well The problem with this is, I trigger auto import from LSP, it pops up the command palette, which causes loss of focus from the file, it auto saves and triggers auto format, and the auto import becomes invalid (either because of request id or code change, doesn't matter), choosing from the commands ends with up noop. I have to do it again, or save beforehand, which loses the point of auto save Previously I'd write my code and go through all the unimported names and run auto import on them, then switch to browser or something, which triggers auto saves. |
Display the code action in a quick panel instead of the context menu, this makes us able to use more keybindings to control which code action we want to use.
With the context menu you're only able to select an item with
up/down arrows
or the mouse, with a quick panel you can add custom keybindings and also use the search feature of the quick panel.