redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.08k stars 442 forks source link

Incorrect TextMate semantic meaning of tokens when using Lombok #3719

Open Burtsev-Alexey opened 4 months ago

Burtsev-Alexey commented 4 months ago

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
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"
        }
      }
    ]
  }
NoahELE commented 1 month ago

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