Repository navigation
fix: separate user tag parameters inlay hint - #968
Merged
fbricon merged 1 commit intoJul 10, 2024
Merged
Conversation
Signed-off-by: azerr <[email protected]>
Collaborator
|
Thanks @angelozerr |
lagergren
added a commit
to redhat-developer/lsp4ij
that referenced
this pull request
Nov 25, 2026
…the left or the right LSP4IJ ignored the paddingLeft and paddingRight of an inlay hint, so a hint which its language server asks to keep apart from the text, as the Qute language server does for the parameters of a user tag (redhat-developer/quarkus-ls#968), touched it. The declarative inlay API has no margin for one side: its HintMarginPadding, the same in 2024.2, 2025.3 and 2026.3, is the same on both sides. So an inlay hint now has a space before its label when it asks for paddingLeft, and after it when it asks for paddingRight, as VS Code leaves a small gap on that side. The space is a text of its own, so a long label, which IntelliJ shortens to 30 characters, never loses it, and it is not part of a clickable label part. The format of the hint does not change, and a hint without padding shows only its label, as before. Unlike in VS Code, the gap is within the hint's background. Fixes #462
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: separate user tag parameters inlay hint
This PR uses the paddingRight property of inlay hint to separate user tag parameters.
Here the result of vscode:
We will have to support this property in LSP4IJ.