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

Where is the color defined for tokens with scopes with undefined colors?

Open chtenb opened this issue 3 years ago • 1 comments

They appear grey with #BBBBBB, but no color in the theme definition matches it. Where does it come from?

image

chtenb avatar Jan 09 '22 11:01 chtenb

Have you tried turning on semantic highlighting and using the rule called "other"? In your settings.json, it would look like this:

{
  "editor.semanticTokenColorCustomizations": {
    "enabled": true,
    "rules": {
      "other": {
        "foreground": "#00FF00",
        "bold": false,
        "italic": false,
        "underline": false,
        "strikethrough": false
      }
    }
  }
}

If that doesn't work, then you have to override the textmate scope of "text.songtxt", which would look like this:

  {
  "editor.tokenColorCustomizations": {
      "textMateRules": [
        {
          "scope": ["text.songtxt"],
          "settings": {
            "foreground": "#00FF00",
            "fontStyle": ""
          }
        }
      ]
    }
  }

gregdolley avatar Aug 16 '22 15:08 gregdolley