Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks are not rendering correctly after enabling inlay hints #84

Closed
HannesNowak opened this issue Jun 22, 2022 · 4 comments
Closed

Blocks are not rendering correctly after enabling inlay hints #84

HannesNowak opened this issue Jun 22, 2022 · 4 comments

Comments

@HannesNowak
Copy link

When configuring the setting "editor.inlayHints.enabled": "on" the blocks aren't rendered correctly.
Here is an example with Java code:
image
So the block isn't the right size after the inlay hints are added to the lines.

@leodevbro
Copy link
Owner

Yeah, that's the limitation of VS Code, not a bug of Blockman. VS Code API does not give extensions access to the pixel locations/dimensions of inlay hints, that's why I recommend to disable inlay hints in order to use Blockman.

@leodevbro
Copy link
Owner

Alternatively, you can try to set right-padding for the blocks, so Blockman will render right edges more rightside, or maybe even to the edge of the viewport, so the inlay hint problem will be less noticeable.

@HannesNowak
Copy link
Author

Thanks for your reply. That's unfortunate but hopefully VS Code enables the access in the future.
I will close this issue for now.

@asukaminato0721
Copy link

I use
image

now. it kind of works 😄

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants