Skip to content

Conversation

@angelosilvestre
Copy link
Collaborator

@angelosilvestre angelosilvestre commented Dec 13, 2024

Add support for showing code actions.

This PR adds initial support for code actions. At the moment, only for showing them, not applying.

I also made some adjustments to the hover popover, because it wasn't working after we switched the way we display the code.

The PopoverList used to display the actions popover was extracted and adapted from SuperEditor.

I also made some adjustments in the way we start LSP tests, to wait until the LSP notifies us it finished analyzing the project. Without this, some methods, like the code actions, just return an empty array.

It seems the code actions return some different options on Flutter master x stable. We should decide whether we want to target the stable or master branch.

It seems that, even with the latest changes, the file rename test isn't working on the CI, I'm letting this commented out for now.

Screen.Recording.2024-12-13.at.11.37.26.mov

@angelosilvestre
Copy link
Collaborator Author

cc @suragch @rutvik110

Copy link
Contributor

@matthew-carroll matthew-carroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - there's a lot going on in this PR. We can iterate as issues arise.

@matthew-carroll matthew-carroll merged commit 097505e into main Dec 14, 2024
1 check passed
@angelosilvestre angelosilvestre deleted the code_actions branch December 15, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants