Show ZWSP (zero with space) as code mining#1437
Show ZWSP (zero with space) as code mining#1437marcushoepfner wants to merge 13 commits intoeclipse-platform:masterfrom
Conversation
...r/src/org/eclipse/ui/internal/texteditor/codemining/ZeroWidthSpaceLineContentCodeMining.java
Outdated
Show resolved
Hide resolved
...g/eclipse/ui/internal/texteditor/codemining/ZeroWidthSpaceLineContentCodeMiningProvider.java
Outdated
Show resolved
Hide resolved
b082ac8 to
6cccc08
Compare
0ee781a to
8b2948b
Compare
|
I just played around a bit with the current state. |
Thanks. That looks good now. |
This is now also fixed. Thanks, |
Is the color of "ZWSP" grey or black in your case? |
I also just debugged this. And I see that the color (for the whitespace chars comes from the styleRange not the textWidget: |
black. |
|
The We could do the same in the |
|
[b76e3d4] solves the rendering problem on windows. Here a screenshot with the Consolas font on Windows showing the zero width spaces as code minings. Here a screenshot with the Courier New font on Windows showing the zero width spaces as code minings. Here a screenshot with the Monospace font on Linux (Suse) showing the zero width spaces as code minings. |
Does it make sense to extract this to an own PR. I assume that we could reproduce this error without this new feature in the whitespace drawer. |
This change improves the rendering of code minings in the presence of zero-width Unicode characters (e.g., ZWSP, ZWNJ, ZWJ, and BOM). The `InlinedAnnotationDrawingStrategy` was updated to recognize these characters, adjust their width calculations, and properly place code mining annotations without causing layout issues. This change is needed by eclipse-platform#1437
This change improves the rendering of code minings in the presence of zero-width Unicode characters (e.g., ZWSP, ZWNJ, ZWJ, and BOM). The `InlinedAnnotationDrawingStrategy` was updated to recognize these characters, adjust their width calculations, and properly place code mining annotations without causing layout issues. This change is needed by #1437
|
don't merge master in your feature branch - we cannot merge these. Pls. rebase your feature branch on top of master. |
Issue: eclipse-platform#1002 For more information refer to https://www.compart.com/en/unicode/U+200B To get a ZWSP refer to https://zerowidthspace.me/
argh, sorry. It's been a while... :) |
|
Is this PR in "draft" state by intention? |
It is ready-for-review now. |
And that is the problem
Because we don't increase minor version twice for the same release. It was already bumped in 5f6cae6. So please undo the version increment in manifest and change since tag to 3.20. Also would be good if you could squash all commits to a single one and after that rebase on latest master branch. |
|
But honestly speaking, today is last day for API changes (tomorrow is M3), I don't expect this change qualifies for RC builds, therefore you can keep on the version bump anyway but do the rest and wait for review comments & merge in the next SDK release. |












Issue: #1002
For more information refer to https://www.compart.com/en/unicode/U+200B To get a ZWSP refer to https://zerowidthspace.me/