Skip to content

Fix #3210: map decorator token to annotation scope#4421

Merged
datho7561 merged 1 commit into
redhat-developer:mainfrom
MeherSru:fix-decorator-token-scope
Jun 2, 2026
Merged

Fix #3210: map decorator token to annotation scope#4421
datho7561 merged 1 commit into
redhat-developer:mainfrom
MeherSru:fix-decorator-token-scope

Conversation

@MeherSru
Copy link
Copy Markdown

Decorator semantic tokens are now emitted by JDT LS as part of #3210.

This change maps the decorator semantic token to the existing Java annotation TextMate scope (storage.type.annotation.java) so that annotations continue to receive consistent coloring across VS Code themes.

Verified using "Developer: Inspect Editor Tokens and Scopes", where @Override is reported as a decorator semantic token and resolves to the annotation scope.

Copy link
Copy Markdown
Contributor

@datho7561 datho7561 left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks, Meher!

@datho7561 datho7561 merged commit 8bec230 into redhat-developer:main Jun 2, 2026
2 checks passed
@datho7561 datho7561 added this to the End of May 2026 milestone Jun 2, 2026
@datho7561 datho7561 moved this to Done in Java Tooling Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants