-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fixes #512 - Transform the Quick Fixes which extends InsertAnnotationQuickFix to implement the code action participant extension point #523
Conversation
Co-authored-by: Trevor Crawford <TrevCraw@users.noreply.github.com>
…er/ProcessStreamConnectionProvider.java Co-authored-by: Trevor Crawford <TrevCraw@users.noreply.github.com>
The server files were modified. changed to built in IntelliJ APIs to show pop up errors.
checkJavaHome() made to return a boolean value. and modified the code according to other comments
added the boolean return method
Formatting done. Changed method name to isJavaHomeValid.
…Liberty#196 Fixes OpenLiberty#196 : Error message popup if Java 17 is not found to launch language servers
1. Implemented IJavaCodeActionParticipant 2. Made the class abstract
…ngType quick fix Added extension point and enabled the tests
@@ -112,4 +131,16 @@ protected PsiModifierListOwner getBinding(PsiElement node) { | |||
protected String getLabel(String annotationName, String... attributes) { | |||
return Messages.getMessage("InsertItem", "@" + annotation); // uses Java syntax | |||
} | |||
|
|||
private CodeAction createCodeAction(JavaCodeActionContext context, Diagnostic diagnostic, String label) { |
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.
@mrglavas - can we raise a separate PR for moving this method to a common file?
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.
@aparnamichael Yes. Feel free to open a separate issue and PR for this. Thanks.
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.
Created PR for the same - #531
…nsertAnnotationQuickFix
4ac1934
into
OpenLiberty:code-action-unification
Fixes #512 - Transform the Quick Fixes which extends InsertAnnotationQuickFix to implement the code action participant extension point
Enabled code actions test as well