vscode-java
vscode-java copied to clipboard
Incorrect TextMate semantic meaning of tokens when using Lombok
When I add lombok @SneakyThrows method annotation, tokens color theme changes to incorrect one. This happens because TextMate rules stop working and semantic meaning of tokens recognises incorectly.
Environment
-
Operating System: Windows 11
-
JDK version: 21
-
Visual Studio Code version: 1.91.1
-
Java extension version: v1.32.0
Steps To Reproduce
Notice the differnce between the "classType" method parameter in top "generate" function and bottom one.
Current Result
Tokens color is incorrect
Expected Result
Tokens color is correct
Additional Informations
This is my TextMate color theme:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "variable.parameter",
"settings": {
"foreground": "#deffcb"
}
}
]
}
Same problem here, @SneakyThrows seems to disable the semantic highlighting inside the function.