VSCode 当有多个范围时,textmate 范围不会覆盖颜色主题

VSCode textmate scopes not overriding color theme when there are multiple scopes

我已经为 VSCode 安装了一个自定义颜色主题扩展,并且我已经能够覆盖我的 settings.json 中的一些颜色,但是每当主题使用多个范围时,覆盖对那些不起作用。

有没有办法覆盖这种颜色?

"editor.tokenColorCustomizations": {
        "[Firefox Devtools Italic]": {
            "textMateRules": [
                { // This works:
                    "scope": ["keyword.control"],
                    "settings": {"foreground": "#FF97E9"}
                },
                { // This doesn't work:
                  "scope": [
                        "meta.function-call.js",
                        "entity.name.function.js"
                    ],
                    "settings": {"foreground": "#B98EFF"}
                },
                { // This doesn't work either:
                    "scope": "meta.function-call.js,entity.name.function.js",
                    "settings": {"foreground": "#B98EFF"}
                },
            ]
        }
}

看来我们必须在数组字符串中包含 space 才能按照以下代码工作:

{
    "scope": ["meta.function-call.js entity.name.function.js"],
    "settings": {"foreground": "#B98EFF"}
},