-
Notifications
You must be signed in to change notification settings - Fork 409
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
Show quick fixes for generating accessors in field declarations #2092
Show quick fixes for generating accessors in field declarations #2092
Conversation
2a1ddb8
to
cc9204c
Compare
test this please |
...e.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/text/correction/ActionMessages.properties
Outdated
Show resolved
Hide resolved
....jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/text/correction/SourceAssistProcessor.java
Outdated
Show resolved
Hide resolved
I think it's OK to remove the old GetterSetterCorrectionSubProcessor since the new code has covered it well. |
@@ -160,10 +160,10 @@ public void testShowAt() throws Exception { | |||
List<Diagnostic> diagnostics = getDiagnostics(cu, astRoot, 4); | |||
context.setDiagnostics(diagnostics); | |||
codeActions = new CodeActionHandler(this.preferenceManager).getCodeActionCommands(codeActionParams, new NullProgressMonitor()); | |||
assertEquals(3, codeActions.size()); |
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.
Here shows the actions under CodeActionKind.QuickFix
, we just removed the quick assist of generating getter and setter from fieldDeclaration to CodeActionKind.Source
, so here the test case should be updated.
test this please |
Signed-off-by: Shi Chen <[email protected]>
Signed-off-by: Shi Chen <[email protected]>
Signed-off-by: Shi Chen <[email protected]>
67b4abf
to
2b16154
Compare
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.
The latest commit works for me.
quickfix.mp4
The quick fixes can be found at
Signed-off-by: Shi Chen [email protected]