Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some substitions do not refresh/end up in weird places #53

Open
jamesohortle opened this issue Oct 8, 2019 · 5 comments
Open

Some substitions do not refresh/end up in weird places #53

jamesohortle opened this issue Oct 8, 2019 · 5 comments

Comments

@jamesohortle
Copy link

jamesohortle commented Oct 8, 2019

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.

@gschaffner
Copy link

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
alexanderte.dainty-vscode@1.1.22
CoenraadS.bracket-pair-colorizer-2@0.0.29
DougFinke.vscode-pandoc@0.0.8
eamodio.gitlens@10.2.1
Gruntfuggly.todo-tree@0.0.169
James-Yu.latex-workshop@8.7.2
KnisterPeter.vscode-github@0.30.3
kzvi.pandoc-markdown-preview@0.3.0
ms-python.python@2020.2.64397
nachocab.highlight-dodgy-characters@1.0.0
njpwerner.autodocstring@0.4.0
shardulm94.trailing-spaces@0.3.1
siegebell.prettify-symbols-mode@0.4.2
sleistner.vscode-fileutils@3.0.1
stkb.rewrap@1.9.1
streetsidesoftware.code-spell-checker@1.8.0
tecosaur.latex-utilities@0.3.6

@marco-coraggio
Copy link

Same here

@gschaffner
Copy link

This looks like a duplicate of #42.

@marco-coraggio
Copy link

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

@argent-smith
Copy link

Looks like the extension is unmaintained. Uninstalled, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants