Maybe @rust_analyzer knows? :-)
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I think it is the called inlay hint.
-
MY HERO!!!!! This led me to this page https://developer.aliyun.com/mirror/npm/package/coc-rust-analyzer … which documents an option "rust-analyzer.inlayHints.chainingHints". Disabling that appears to have done the trick!
- 3 more replies
New conversation -
-
-
Looks like the types of the expression at the left? No idea how to turn off though, I haven't switched to rust-analyzer yet.
-
Yeah, they are the types, but I don't know what it's called in LSP-speak. Are they "diagnostics"? "hints"? I don't know. Moreover, they don't appear to the right of every expression. Only some of them. So frustrating. :-(
- 1 more reply
New conversation -
-
-
try the last one in "rust-analyzer.inlayHints.typeHints": false, "rust-analyzer.inlayHints.parameterHints": false, "rust-analyzer.inlayHints.chainingHints": false,
-
Yup, chainingHints did the trick!
@otaviosalvador tipped me off. :-)
End of conversation
New conversation -
-
-
is this a feature that you would find helpful if it were more consistent, or are you not a fan in general? i (being newer to the language) find it helps me resume context (at this point do i have a reference? an option?) quickly when reading long multi-lined chains
-
I would like it if I could make the hint appear on-demand, one expression or line at a time. But having them displayed everywhere all the time absolutely drives me nuts. Maybe it would be useful when just starting? Not sure. I don't think I would want it even then.
End of conversation
New conversation -
-
-
i believe this is intentional and intended to be useful but i don’t know how to turn it off either and i think that’s possibly worse than not shipping the feature at all
-
Yup, and I just figured out how to turn it off thanks to
@otaviosalvador. You need to disable "rust-analyzer.inlayHints.chainingHints". I can see how it would be useful to ask the type of an expression, but having it inconsistently applied by default everywhere seems nuts to me. - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.