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

TokenType is 0 based according to LSP spec #964

Merged
merged 5 commits into from
Apr 16, 2024

Conversation

BoykoAlex
Copy link
Contributor

No description provided.

@rubenporras
Copy link
Contributor

rubenporras commented Apr 15, 2024

Hi @BoykoAlex ,

Is it correct that this is a similar change to the one done in the recent Xtext 2.34 (eclipse-xtext/xtext#2753, see changes to org.eclipse.xtext.ide/src/org/eclipse/xtext/ide/server/semantictokens/SemanticTokensService.java).

Also, out of curiosity, are you using an Xtext-based language server, or have you discovered the issue with a different type of server?

Regards

expectedTokens.add(Arrays.asList(0,0,4,1,0));
expectedTokens.add(Arrays.asList(3,0,4,1,0));
expectedTokens.add(Arrays.asList(0,9,7,1,0));
expectedTokens.add(Arrays.asList(0,0,4,0,0));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to increase as well the version number of the test plugin for the commit to be buildable.

@BoykoAlex
Copy link
Contributor Author

@rubenporras yes, looks like it is the same kind of change to me.

No, not using XText, at least at the moment. There are JPA Queries that are typically embedded in annotations inside Java code. Therefore, we decided to provide semantic highlighting for query strings inside Java annotations. This is implemented as part of the Spring Boot Language server. The clients are LSP4E and vscode-languageclient. The work is tracked by spring-projects/sts4#1114.

I have to admit highlighting is somewhat unknown territory for me... so I had some additional questions here #965

@rubenporras rubenporras merged commit d4e5765 into eclipse-lsp4e:master Apr 16, 2024
2 checks passed
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.

2 participants