-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Inline text adornments break word wrapping #32856
Comments
The exact same issue exists for inline breakpoints. Taken from #84911 (comment) |
Another screenshot from #76458 |
@alexdima, at this point I don't understand what this issue is... Is it about supporting word-wrapped inline text decorations or just not showing scrollbars for them? |
I'd honestly prefer it if the text decorations could appear above the arguments they're referring to, in an even smaller font. Might changing the display like that be easier than fixing this bug? |
@dyaso it's not that simple. There's much more different types of code decorators than colors that break word wrapping. Debugger information, variables type helpers, etc. - it's impossible to put them around the code because it would interfere with another code out there. Or it would have to be really small, almost unreadable. The best solution would be to activate wrapping after all decorators have been loaded, but with many of them being loaded by custom modules I assume it must be very hard to come up with a universal fix. |
@SharakPL Sorry for bothering you, i was referring to the textual type inferences and argument names |
Also user of rust-analyzer, and my workaround is to set the Word Wrap Column really low, around 30+% lower than needed. |
Pretty disappointing that this basic bug is still not fixed. I use VS Code also as text editor but maybe I need to look for alternatives. For now, my workaround is:
|
You can disable the GitLens blame at any level (user/workspace/folder). Check out the interactive setting ui (GitLens: Open Settings from the command palette) |
You're right - what I wanted to say (but didn't) was: You can't change GitLens settings in the language specific settings. |
Mind opening an issue for that on the GitLens repo. Could be quite valuable outside of this issue as well. |
I use VS Code for writing TeX and I have come across this text-wrapping bug. Thanks for the tips about disabling Gitlens blame - that has sorted things for me at least temporarily. Annoying that one has to do this however as I quite like that integration. |
This issue has been open for ~6 years... |
It seems like more comments and complaints are the only way to get things resolved, more visibility and interactions the better I guess. I really don't understand how any company can have issues of this age without prioritising them... |
Indeed. It's clearly a bug, not a "feature request" 🙄 Guess it must be hard to fix so it's being back-burnered indefinitely |
Related(?) Stack Overflow question with the LaTeX-Workshop extension: How can I adjust the position and appearance of chktex linting in VS Code? |
I'm also having this issue, does anyone know a workaround? |
@peywan if it's such a minor fix then fix it 😉 |
This is quite annoying when using Tailwind, where lines get quite long, but word wrap's useless because the color decorators offset it... |
I've run into this issue as well. Maybe Gitlens has created a workaround aside from just disabling line blame... |
This has been a known and documented issue for more than 5 years. When we will see a solution? |
Never! Let's make this the longest standing issue :) |
Let's not. This issue is really annoying and makes working in a codebase actively harder for no real reason. |
I had to disable every extensions that post-adds text for this reason ! This bug is still very annoying, yes... |
Steps to Reproduce:
With colorDecorators disabled word wrapping works fine. After enabling it wordWrap completely ignores the width of added decorators and wrapes the code as they are not there what makes parts of the code to be pushed out of viewport.
I think it would be better to just underline the colors accordingly instead adding new elements next to it.
Also it would be great to add some margin between wrapped code and minimap (or whatever is on the right).
Reproduces without extensions: Yes
Edit: Added a screenshot to demonstrate the issue:
The text was updated successfully, but these errors were encountered: