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
Specifically with rust lsp (but i've seen similar unanswered questions for other languages here), is there a way to get type hints?
The work around i'm using is to just add a : String and then get an error which shows me the type, like "found String, expected TheTypeIWantedToKnow".. but that seems way too convoluted.
I don't need it overlayed on the code like most "modern" IDEs do. I am fine with a :ALE... call or on cursor move. Is there anyway to just show the inferred type without forcing the error?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Specifically with rust lsp (but i've seen similar unanswered questions for other languages here), is there a way to get type hints?
The work around i'm using is to just add a
: String
and then get an error which shows me the type, like "found String, expected TheTypeIWantedToKnow".. but that seems way too convoluted.I don't need it overlayed on the code like most "modern" IDEs do. I am fine with a
:ALE...
call or on cursor move. Is there anyway to just show the inferred type without forcing the error?Beta Was this translation helpful? Give feedback.
All reactions