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

Word wrap + color decorators truncates line #762

Closed
fturmel opened this issue Apr 19, 2023 · 3 comments
Closed

Word wrap + color decorators truncates line #762

fturmel opened this issue Apr 19, 2023 · 3 comments

Comments

@fturmel
Copy link

fturmel commented Apr 19, 2023

Using v0.9.11 of the plugin.

It seems like the color decorators are not calculated as part of the line width in the editor and that causes lines to be truncated when word wrap is enabled. Lines without a color decorator wrap correctly.

image

@bradlc
Copy link
Contributor

bradlc commented Apr 19, 2023

Hey @fturmel. This is a VS Code issue so I'm going to close this in favour of microsoft/vscode#32856

@bradlc bradlc closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2023
@fturmel
Copy link
Author

fturmel commented Apr 19, 2023

I just discovered that same issue and realized it's an editor bug, sorry for the noise. Can't believe it's been opened for almost 6 years...

@fturmel
Copy link
Author

fturmel commented Apr 19, 2023

I find that Tailwind with word wrap is a much better experience, but this little detail is so annoying. Doesn't seem like VS Code will fix it any time soon.

Would you consider having a setting in the plugin to toggle this color preview feature between the color decorators and something that doesn't alter the line width? Maybe white text on color background (like the Colorize plugin)?

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

2 participants