-
Notifications
You must be signed in to change notification settings - Fork 377
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
Add unimplemented methods code action. #322
Conversation
private static final String ADD_FIELD_QUALIFICATION_ID = "org.eclipse.jdt.ui.correction.qualifyField"; //$NON-NLS-1$ | ||
private static final String ADD_STATIC_ACCESS_ID = "org.eclipse.jdt.ui.correction.changeToStatic"; //$NON-NLS-1$ | ||
private static final String REMOVE_UNNECESSARY_NLS_TAG_ID = "org.eclipse.jdt.ui.correction.removeNlsTag"; //$NON-NLS-1$ | ||
|
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.
That's a whole lot of commented code, bringing this contribution way past the 1000L threshold that requires us to open a CQ.
Can you get rid of the commented stuff?
private static final String ADD_NON_NLS_ID = "org.eclipse.jdt.ui.correction.addNonNLS"; //$NON-NLS-1$ | ||
private static final String ADD_FIELD_QUALIFICATION_ID = "org.eclipse.jdt.ui.correction.qualifyField"; //$NON-NLS-1$ | ||
private static final String ADD_STATIC_ACCESS_ID = "org.eclipse.jdt.ui.correction.changeToStatic"; //$NON-NLS-1$ | ||
private static final String REMOVE_UNNECESSARY_NLS_TAG_ID = "org.eclipse.jdt.ui.correction.removeNlsTag"; //$NON-NLS-1$ |
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.
Please change the org.eclipse.jdt.ui prefixes to org.eclipse.jdt.ls
Signed-off-by: Yaohai Zheng <yaozheng@microsoft.com>
Updated the changes |
@yaohaizh Great work! Search for testUnimplementedMethods*, there's like 23 tests that we have in JDT. |
@yaohaizh yes, that would count as part of the total LOC contribution. Which sends us back into CQ territory :-/ We can probably merge this one PR first and add more tests later |
@fbricon Changes were pushed based on code review. We can merge this PR first if everything is okay. I'll merge the test cases later in another PR. |
PR works well but I found that indentation issue in vscode. I'm not sure whether we should try to infer the expected file indentation at the server level (overriding the project settings) and send that to the client (exactly what vscode does when inserting text edits after completing code). Anyways, I'll merge this as-is, since this is the current expected behaviour. |
Signed-off-by: Yaohai Zheng yaozheng@microsoft.com
@fbricon @gorkem
Fix for redhat-developer/vscode-java#270