Show ZWSP (zero with space) as code mining#1437
Show ZWSP (zero with space) as code mining#1437marcushoepfner wants to merge 11 commits intoeclipse-platform:masterfrom
Conversation
...r/src/org/eclipse/ui/internal/texteditor/codemining/ZeroWidthSpaceLineContentCodeMining.java
Outdated
Show resolved
Hide resolved
Test Results0 tests 0 ✅ 0s ⏱️ Results for commit dafceda. ♻️ This comment has been updated with latest results. |
...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
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/













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