Skip to content

Scope visualizer incorrectly draws borders when line wrapping is enabled #1639

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

Open
pokey opened this issue Jul 16, 2023 · 0 comments
Open

Comments

@pokey
Copy link
Member

pokey commented Jul 16, 2023

When line wrapping is enabled, if a single scope crosses the point where the line wraps, VSCode makes it appear as tho the scope ends and begins again. For example, for "visualize sentence":

image

Note how this is one sentence, but appears to be two. The problem is that we set the scope to have right and left borders, which VSCode then "helpfully" draws both times it renders the pieces of the highlight

I don't think there's any thing we can do to fix this, but maybe we should search for / file an issue for a VSCode api to detect line wrapping position. That api could potentially be part of a visual column api that they could expose to help us with #1586

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

1 participant