leodevbro / vscode-blockman

VSCode extension to highlight nested code blocks
https://github.com/leodevbro/vscode-blockman
MIT License
345 stars 16 forks source link

Blockman doesn't handle word wrap correctly #120

Open mybearworld opened 11 months ago

mybearworld commented 11 months ago

I'm expecting it to handle word wrapped lines as just regular lines. Instead, it looks like this: image

leodevbro commented 11 months ago

Unfortunately this is a limitation of VS Code itself. The VS Code extension API does not give extensions access to the pixel locations of the characters or wrap locations of each line. Blockman is only able to access number of characters in each line.

I posted a feature request for it: https://github.com/microsoft/vscode/issues/118994

But VS Code team does not seem to have any plans for implementing this.

mybearworld commented 11 months ago

Oh, that's unfortunate.