leodevbro / vscode-blockman

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

Undesirable gaps when codelens is turned on #34

Open henry-js opened 3 years ago

henry-js commented 3 years ago

When using reference codelens, blocks are not rendered on the reference lines, this results in gaps that are quite jarring: image

leodevbro commented 3 years ago

Yeah, this is not exactly a bug of Blockman, but more of a product of the limitations of VSCode extension API. the blocks are rendered line by line divs, not as entire block divs, this is because VSCode API has some strange limitations, for example, if any div is higher than line height, then if we scroll to make it half hidden, the other half also disapears, thus behaving with uncomfortable manner. Maybe I will post a feature request in vscode repo about this limitation.