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
Apologies for the messy issue title. Not sure how to phrase it. Example below applies to VS Code.
With type inlay hints, when moving the caret, it jumps from between the second-last and last characters ([len-1, len]) of the variable name to the end of the inlay hint. That is, the caret never falls after the end of the variable name on the last character ([len, len+1]).
This is unintuitive. It would be more appropriate to have the type inlay hint "occupy" the whitespace afterwards instead.
The parameter inlay hint appears to behave intuitively.
See #1623 and #1651. It's the way Code works, and we probably can't fix it. There are plans for a type hint API, but it's not being worked on, as far as I know.
The parameter inlay hint has the same theoretical issue, but seems better because it is a prefix instead of a suffix. We talked about it when we initially implemented the features and I think it's an inherent limit with what VSCode allows us to do the the editor. Unless something has changed since then, we can't really do anything about it.
Going to close it, hope you don't mind.
Activity
lnicola commentedon Jan 21, 2020
See #1623 and #1651. It's the way Code works, and we probably can't fix it. There are plans for a type hint API, but it's not being worked on, as far as I know.
kiljacken commentedon Jan 21, 2020
The parameter inlay hint has the same theoretical issue, but seems better because it is a prefix instead of a suffix. We talked about it when we initially implemented the features and I think it's an inherent limit with what VSCode allows us to do the the editor. Unless something has changed since then, we can't really do anything about it.
Going to close it, hope you don't mind.
tigregalis commentedon Jan 21, 2020
Ah alright. Thanks for the response. I should have checked closed issues. Feel free to close it.
Auto merge of rust-lang#2888 - Vanille-N:tb-diags, r=RalfJung
Auto merge of rust-lang#2888 - Vanille-N:tb-diags, r=RalfJung