vscode-blockman icon indicating copy to clipboard operation
vscode-blockman copied to clipboard

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

Open Alohaq opened this issue 2 years ago • 5 comments

Alohaq avatar Feb 08 '23 02:02 Alohaq

image image

Alohaq avatar Feb 08 '23 02:02 Alohaq

image

Alohaq avatar Feb 08 '23 02:02 Alohaq

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.

leodevbro avatar Feb 08 '23 16:02 leodevbro

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

ShayBox avatar May 21 '23 13:05 ShayBox

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.

leodevbro avatar May 22 '23 10:05 leodevbro