vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Incorrect TextMate semantic meaning of tokens when using Lombok

Open Burtsev-Alexey opened this issue 1 year ago • 1 comments

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

image 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"
        }
      }
    ]
  }

Burtsev-Alexey avatar Jul 23 '24 08:07 Burtsev-Alexey

Same problem here, @SneakyThrows seems to disable the semantic highlighting inside the function.

NoahELE avatar Oct 16 '24 06:10 NoahELE