vsc-prettify-symbols-mode icon indicating copy to clipboard operation
vsc-prettify-symbols-mode copied to clipboard

Some substitions do not refresh/end up in weird places

Open jamesohortle opened this issue 5 years ago • 5 comments

OS: mac OS Mojave 10.14.6 (18G95) VS Code version: 1.38.1 Extension version: 0.4.2

Screen Shot 2019-10-08 at 10 22 59

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.

jamesohortle avatar Oct 08 '19 01:10 jamesohortle

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]

gschaffner avatar Mar 10 '20 04:03 gschaffner

Same here

marco-coraggio avatar Apr 11 '20 12:04 marco-coraggio

This looks like a duplicate of #42.

gschaffner avatar Apr 15 '20 09:04 gschaffner

Did anybody find a workaround or a different extension that can do the job without this issue?

marco-coraggio avatar May 02 '20 09:05 marco-coraggio

Looks like the extension is unmaintained. Uninstalled, sorry.

argent-smith avatar May 28 '20 22:05 argent-smith