Skip to content
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

Merge code-action-unification branch into main #538

Merged
merged 34 commits into from
Oct 21, 2023

Conversation

TrevCraw
Copy link
Contributor

@TrevCraw TrevCraw commented Oct 21, 2023

This PR contains content that was previously reviewed and tested before it was merged into the code-action-unification branch. 11 Jakarta EE code actions have been transformed to share the same design as the MP code actions and are loaded using extension points in the same way.

Summary of changes to unify the design of code actions

  1. Transformed Jakarta EE code actions so that they implement IJavaCodeActionParticipant.
  2. Enhanced JavaCodeActionDefinition by adding a group field to distinguish between code actions for different language servers (e.g. MP vs. Jakarta EE)
  3. Enhanced the MP CodeActionHandler to use this field when filtering the list of code actions.
  4. Plugged the MP CodeActionHandler into the PropertiesManagerForJakarta, replacing the usage of the Jakarta EE JakartaCodeActionHandler.
  5. Specified javaCodeActionParticipants in the plugin.xml for the Jakarta EE code actions and updated all of the existing javaCodeActionParticipants to specify that those code actions apply to MicroProfile by adding the group field.

mrglavas and others added 30 commits October 21, 2023 11:39
… and corrects a problem with the code change computed by the quick fix.

Signed-off-by: Michael Glavassevich <[email protected]>
1. Implemented IJavaCodeActionParticipant
2.  Made the class abstract
…ngType quick fix

Added extension point and enabled the tests
…#514

Refactored the code to implement the code action participant extension point.
Jakarta EE code action tests enabled.
This reverts commit 9f6efa4.
Copy link
Contributor

@mrglavas mrglavas left a comment

Choose a reason for hiding this comment

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

This looks good. Appears to have all the commits I expected to see and nothing else.

@TrevCraw TrevCraw merged commit a87ddbd into OpenLiberty:main Oct 21, 2023
2 of 3 checks passed
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.

8 participants