coq-community / vsc-conceal

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

strange behaviour of the symbol's color #16

Open cht33 opened 3 years ago

cht33 commented 3 years ago

I found that the symbol's color is the same as the char next to it. For example, I have these substitutions

{ "ugly": "\\\\left\\[", "pretty": "[" },
{ "ugly": "\\\\tau", "pretty": "τ", "post": "\\b|_" },

The colors will be like that: Snipaste_2021-09-28_08-43-08 The first line is latex source code, the second line is the concealed code. Each \tau has different color and the [ is affected by the pink number. Only the first \tau and the ] have the normal text color, maybe because they are follow by whitespace.

However, when I turn on the editor.renderWhitespace(which i usually turn on), everthing looks quite terrible, I can hardlly see the symbols previous to the whitespace!!! Snipaste_2021-09-28_08-53-48

What can I do to set a color for all the symbols? Is this a bug of this extension's color rendering scheme?