coq-community / vsc-conceal

Prettify Symbols Mode for Visual Studio Code [maintainer=@rtetley]
MIT License
54 stars 6 forks source link

Scope keyword is not working #14

Open ShiromiTsukasa opened 3 years ago

ShiromiTsukasa commented 3 years ago

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 the substitutions 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.

gruvw commented 3 years ago

Scope is not working for me too: "scope": "meta.math.block.latex"

gRox167 commented 1 year ago

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