Binaryify / OneDark-Pro

Atom's iconic One Dark theme for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme
MIT License
1.52k stars 289 forks source link

Cannot override some scopes #503

Closed GBrachetta closed 3 years ago

GBrachetta commented 3 years ago

Maybe not a bug but I'm not able to override some of the color syntax

I'm trying to tweak some of the colors, for example:


{
  "editor.tokenColorCustomizations": {
    "textMateRules": [
      {
        "name": "Javascript - Variable/object",
        "scope": [
          "variable.other.object.js"
        ],
        "settings": {
          "foreground": "#c7452e",
          "fontStyle": "bold italic"
        }
      }
    ]
  }
}

However, this is overridden by OneDark-Pro as you can see in the strike-thru lines at the end of this screenshot.

Screenshot 2021-01-27 at 22 23 41

Is there a way to, for example, alter the color of this particular item? Thank you!

Desktop (please complete the following information):

Binaryify commented 3 years ago

please use

"editor.semanticTokenColorCustomizations": {
    "rules": {
      "variable.defaultLibrary": {
        "foreground": "#c7452e"
      }
    }
  },

or set this

"editor.semanticHighlighting.enabled": false,