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

Autocompletion fails if Class name contains $ #367

Merged
merged 1 commit into from
Sep 26, 2017

Conversation

snjeza
Copy link
Contributor

@snjeza snjeza commented Sep 25, 2017

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]

@snjeza snjeza self-assigned this Sep 25, 2017
@snjeza snjeza requested a review from fbricon September 25, 2017 20:19
@snjeza snjeza requested a review from gorkem September 25, 2017 20:19
@@ -0,0 +1,5 @@
package java;
Copy link
Contributor

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)

Copy link
Contributor

@fbricon fbricon left a 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) {
Copy link
Contributor

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()

@fbricon fbricon merged commit be4e594 into eclipse-jdtls:master Sep 26, 2017
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.

3 participants