Open ShiromiTsukasa opened 3 years ago
Scope is not working for me too: "scope": "meta.math.block.latex"
I find that vscode Extension Host have an error when we use scope in config file, [error] TypeError: this._options.loadGrammar is not a function
. I searched in this repo, I could not find this function.
I found out that there is a loadGrammar
function in extension.ts of parent repo, maybe the author delete this function due to some reason. text-mate.ts
Either that the scope keyword is not working, or it's my brain that's not working.
I wanted to make the
and
logical operator to be prettified and not inside a string when I'm working in Python, so I put a"scope": "keyword.operator.logical.pretty"
inside thesubstitutions
key, I.E:{ "ugly": "and", "scope": "keyword.operator.logical.python", "pretty": "∧", "pre": "\\s|^", "post": "\\s|$", "style": {"color": "#F92672"} }
but, after putting the scope there, not only did the
and
logical operator doesn't get prettified, literally everything stops getting prettified.