leodevbro / vscode-blockman

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

Visual issue with inline parameter #132

Closed bumpyy closed 4 months ago

bumpyy commented 4 months ago

Code_wN3dcasXif

So, I'm using inline parameter by Liam hammet and it causes some sort of visual bug?, anyway it's fine if i hide the inline parameter. Code_d7hhqh2Kic

Anyway, just letting you know, cheers 🥂.

leodevbro commented 4 months ago

Hello, unfortunately this is a VS Code limitation for extensions that extensions are not able to know where are the inlay hints placed or what are the widths of each inlay hint, or where do the actual code characters are located. Blockman calculates locations of letters by count of letters and the monospace-width of a letter.

If you use inlay hints, then for a bit better experience, probably it's a good idea to set Blockman setting of: blockman.n04Sub04RightSideBaseOfBlocks to Rightmost Edge Of Viewport. By default, it is Rightmost Edge Of Inner Content.

More info: https://github.com/leodevbro/vscode-blockman/issues/84

.

https://github.com/leodevbro/vscode-blockman/issues/99

. .

bumpyy commented 4 months ago

Understandable, have a great day.