leodevbro / vscode-blockman

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

Doesn't render correctly with rust-analyzer #57

Closed emanuellima1 closed 2 years ago

emanuellima1 commented 2 years ago

When I use Blockman with rust-analyzer the following happens:

image

The type hints that rust-analyzer adds to the code make the line go out of it's section. The point is, these type hints are not actual text that is written. It is just rendered on the editor. So is that why it bugs Blockman? Maybe it is related to this?

leodevbro commented 2 years ago

Yeah, it's not exactly bug of Blockman. It's the limitation of VSCode. It does not give us access to pixel locations of text characters, so Blockman calculates locations by the number of characters. So that's why Blockman disables (at the initial install event) those type hints with this setting:

editor.inlayHints.enabled": false,