vsc-prettify-symbols-mode
vsc-prettify-symbols-mode copied to clipboard
Some substitions do not refresh/end up in weird places
OS: mac OS Mojave 10.14.6 (18G95) VS Code version: 1.38.1 Extension version: 0.4.2

I have the following in my settings.json
file so that expressions like lambda x: x + 1
are displayed as λx: x + 1
.
"prettifySymbolsMode.substitutions": [
{
"language": "python",
"substitutions": [
{
"ugly": "lambda ",
"pretty": "λ",
"style": {
"color": "#569CD6"
},
"pre": "\\W*",
},
]
Unfortunately, if you look at the screenshot, it seems like λ
character gets placed randomly throughout the screen (replacing = HERE
and is inserted before a newline).
Neither reloading the extension nor reloading the window or changing pre
and post
to
"pre": "\\s*",
"post": "\\s*"
helped.
I can't tell if the problem is my regex or the extension itself. I don't see any output in the console.
This issue occurs frequently for me as well.
@jamesohortle I initially thought that this could be due to some conflict with Bracket Pair Colorizer and this extension since it looks like you are using it as well (I am using Bracket Pair Colorizer 2). However, I can replicate this bug even with Bracket Pair Colorizer 2 disabled.
I am running Code OSS 1.32.1 on Manjaro GNU/Linux 19.0.2 and my enabled extension list is
code --list-extensions --show-versions
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Same here
This looks like a duplicate of #42.
Did anybody find a workaround or a different extension that can do the job without this issue?
Looks like the extension is unmaintained. Uninstalled, sorry.