leodevbro / vscode-blockman

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

The code will out of the block if I enable and open inlayHints #99

Open Alohaq opened 1 year ago

Alohaq commented 1 year ago

image image

Alohaq commented 1 year ago

image

leodevbro commented 1 year ago

Unfortunately it seems a limitation of VS Code itself and probably I cannot do anything about it. I'll try to find a specific method in VS Code extension API to be able to scan all inlay hints, to calculate corresponding additional width for the blocks.

ShayBox commented 1 year ago

You could just make the width the full width of the column setting, or suggest an API to access that because inlay hints are very important

leodevbro commented 1 year ago

Well, I posted the feature request in the VS Code Github repo.

https://github.com/microsoft/vscode/issues/118994

"Please provide a function in API to get horizontal pixel coordinate of any character in any line."

Unfortunately the VS Code team does not seem to have plans of implementing this feature for extensions.