You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Inlay hints will awkwardly get in the way of the cursor while typing, causing the newly typed character to appear after the inlay hint, only for the inlay hint to jump back before the newly created character on the next frame. See my animated screenshot for clarity.
To Reproduce
Steps to reproduce the behavior:
Use LSP and LSP-volar
Enable all the inlay hint settings for LSP-volar, and "show_inlay_hints" in LSP
Write const test = 5;
Observe the inlay hint saying :number appear after the test variable name.
Put the caret right before an inlay hint
Type some characters
Observe the characters ping-ponging
Suffer
Expected behavior
When typing a character right before an inlay hint, the inlay hint should be pushed one index to the right, so that the newly typed character is before the inlay hint, not after.
Screenshots
Environment:
OS: Windows 10 Pro 21H2
Sublime Text version: 4143
LSP version: 1.23.0
Language servers used: LSP-volar v2.3.0
Additional context
Also I'm unsure if this is related or not, but whether I'm allowed to put a caret before or after an inlay hint seems somewhat random.
I'm pressing left/right here, and as you can see see my caret is jumping between very different positions. It's not exactly random, it appears to be based on whether I last backspaced or typed a character on the variable. So there is something funky going on with the inlay hint's position based on your input.
I find the version where I'm allowed to put my caret like in the first example vastly superior, it's just weird to have the inlay hint smack dab in the middle of the variable name as I'm typing out the rest of the word: "test[hint]ing", only for the [hint] to correct itself afterwards.
The text was updated successfully, but these errors were encountered:
Describe the bug
Inlay hints will awkwardly get in the way of the cursor while typing, causing the newly typed character to appear after the inlay hint, only for the inlay hint to jump back before the newly created character on the next frame. See my animated screenshot for clarity.
To Reproduce
Steps to reproduce the behavior:
const test = 5;
:number
appear after thetest
variable name.Expected behavior
When typing a character right before an inlay hint, the inlay hint should be pushed one index to the right, so that the newly typed character is before the inlay hint, not after.
Screenshots
Environment:
Additional context
Also I'm unsure if this is related or not, but whether I'm allowed to put a caret before or after an inlay hint seems somewhat random.
I'm pressing left/right here, and as you can see see my caret is jumping between very different positions. It's not exactly random, it appears to be based on whether I last backspaced or typed a character on the variable. So there is something funky going on with the inlay hint's position based on your input.
I find the version where I'm allowed to put my caret like in the first example vastly superior, it's just weird to have the inlay hint smack dab in the middle of the variable name as I'm typing out the rest of the word: "test[hint]ing", only for the [hint] to correct itself afterwards.
The text was updated successfully, but these errors were encountered: