-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
When cursor moves horizontally, it shows two different behaviors when passing inlayHints
#166927
Comments
This is by design - we wanted the cursor to behave the same with and without inlay hints. |
@hediet I have to agree with @brandonwie that this is confusing and we should at least consider an option for this |
@hediet @jrieken thank you so much for the comments In a conceptual way, the cursor behaves the same way with the However, in a functional manner(user's perspective), it can be very confusing as jrieken mentioned. One of the reasons is that when the cursor passes the inlay hint from left to right, it gives me the impression that the inlay hint is treated as text because the cursor stops in front of it. I truly love and use this brilliant feature every single day, and the behavior was one of the things I need to endure to use the feature. However, after months, I have come to a point where I want to raise my hand and ask you guys if there is any chance that the behavior can be changed in a more practical manner. I'm more than happy to know the fact that it was by design. Either way, I'll keep using it. 😁 |
@brandonwie I fully support your viewpoint, it is well-reasoned and convincing.
Your suggestions will fix this:
Although the current design should be well thought out, it wouldn't hurt to give users an additional option. |
Could this be related to this issue? The PR from @NriotHrreion is already there to be reviewed since several months related to the confusing and unacceptable behaviour of the block cursor with active inlay hints. Maybe it will also fix this issue here, which is also 2 years old. @NriotHrreion provided a fix for that. Would appreciate to be merged soon or at least a statement when we can expect this to be fixed. Thanks a lot and best regards. |
Does this issue occur when all extensions are disabled?: Yes
A. Behavior when the cursor moves forward (left to right),
As you can see above, the cursor does not pass inlayHints instead of going to the right in front of the letter A of the second `Array`. However, when you move the cursor in the opposite direction, from right to left, it shows different behavior.
B. Behavior when the cursor moves backward (right to left),
The cursor stays in front of the letter A on the first move, but on the next move, it passes the opening bracket and it locates before the opening bracket.
Conclusion
When a cursor moves horizontally, the cursor ignores text that is placed right after the inlay hints.
Suggestions
Steps to Reproduce:
inlayHints
options by putting these lines in settings.json of your VSCodetest.(js | ts)
fileThe text was updated successfully, but these errors were encountered: