eduardodx / vscode-AutumnBreeze

Other
0 stars 0 forks source link

Missing syntax highlighting of string interpolation in TypeScript #1

Open ElHyperion opened 6 days ago

ElHyperion commented 6 days ago

String interpolation in TypeScript is not highlighted properly. You can see in this example how GitHub markdown highlighting handles it:

`The error is: ${err}`

This is how it appears with this theme: image

In some themes the err part is colored differently than the dollar and brackets, but I think it'd suit this theme the most if all of it was the same colour as the brackets and variables, which is white (or orange-ish white?)

ElHyperion commented 6 days ago

I managed to fix it on the dark version with:

  "editor.tokenColorCustomizations": {
    "[Autumn Breeze Dark]": {
      "textMateRules": [
        {
          "scope": "variable.other",
          "settings": {
            "foreground": "#F4E9D6"
          }
        },
        {
          "scope": "variable.parameter",
          "settings": {
            "foreground": "#DFC9A4"
          }
        }
      ]
    }
  },

I took the #F4E9D6 from the foreground colour of this theme, and picked the variable.parameter colour to distinguish parameters for myself, but I suppose it can be the same as well.