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

Add semantic tokens for records and constructors #1897

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

0dinD
Copy link
Contributor

@0dinD 0dinD commented Oct 3, 2021

See redhat-developer/vscode-java#2124
See redhat-developer/vscode-java#2125

New semantic token types

New semantic token modifiers

  • constructor (Constructors)
    • The token type of constructors has also been changed from method to class, enum, record etc.

I also refactored the code for checking and setting the modifier bits, to make it more clear and concise. The reason for splitting it up into multiple different check* methods is that we don't always need to check everything.

CC: @Eskibear

Signed-off-by: 0dinD <zerodind@gmail.com>
Copy link
Contributor

@Eskibear Eskibear left a comment

Choose a reason for hiding this comment

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

LGTM.

@fbricon fbricon merged commit 3b7a147 into eclipse-jdtls:master Oct 12, 2021
@fbricon
Copy link
Contributor

fbricon commented Oct 12, 2021

Thanks @0dinD!

@fbricon fbricon added this to the Mid October 2021 milestone Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants