Skip to content

Incorrect TextMate semantic meaning of tokens when using LombokΒ #3719

@Burtsev-Alexey

Description

@Burtsev-Alexey

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions