-
Notifications
You must be signed in to change notification settings - Fork 408
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
Autocompletion fails if Class name contains $ #367
Conversation
@@ -0,0 +1,5 @@ | |||
package java; |
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 avoid the java
package, It's actually illegal to use (I should never have used that in the 1st place)
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.
Can we extract all string.replaceAll(DOLLAR, ESCAPE_DOLLAR);
occurrences into one static method?
public static final String FILE_UNC_PREFIX = "file:////"; | ||
|
||
private ResourceUtils() { | ||
// No instanciation | ||
} | ||
|
||
public static String replaceAll(String replace) { |
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.
It doesn't really relate to Resource manipulations. I'd move it to CompletionUtils.sanitizeCompletion()
Signed-off-by: Snjezana Peco <[email protected]>
Fixes redhat-developer/vscode-java#301
The issue happens because the $ sign is in a conflict with snippet support.
Signed-off-by: Snjezana Peco [email protected]