Skip to content
Discussion options

You must be logged in to vote

virtual text is not setup by us, we display whnatever the LSP sends. In this case I know for a fact that RA intentionally insert this space so that the next identifier isn't right next to the virtual text.

To display this padding the padding parameter is used. The LSP standard explicitly says that this padding should have the same background color as the main text so we are just follwoing the LSP standard here. This behaviour also matches other editor like vscode (see screenshot, colors are a bit subtle but you can see that the space was inserted for the inlay hint that has the normal background color and not the background color of the virtual hint).

It's an intentional choice of the la…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RocketRide9
Comment options

Answer selected by RocketRide9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
2 participants
Converted from issue

This discussion was converted from issue #11293 on July 25, 2024 18:55.