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

A 'keyword' semantic token will sometimes appear when typing an expression #1921

Closed
0dinD opened this issue May 2, 2021 · 0 comments · Fixed by eclipse-jdtls/eclipse.jdt.ls#1753
Milestone

Comments

@0dinD
Copy link
Contributor

0dinD commented May 2, 2021

Sometimes, when typing an expression, a keyword semantic token will appear, causing strange colorization.

Environment
  • Java extension version: 0.79.0
Steps To Reproduce
  1. Have the following code:
public class Foo {

	public static void main(String[] args) {
		String string = "string";
		if (string.) {

		}
	}

}
  1. Observe that ring. (in the if-statement) will receive the keyword semantic token.
Current Result

ring. receives the keyword semantic token.

Expected Result

ring. does not receive the keyword semantic token.

Additional Information

I will submit a PR with a fix for this shortly.

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 a pull request may close this issue.

2 participants