-
Notifications
You must be signed in to change notification settings - Fork 216
Description
Point of terminology: goto-definition, goto-declaration, and goto-type are 3 different operations with very similar behaviour. cmd+click prefers those options in that order, if they have a result. goto-type has been a bit neglected because it's the last in the chain, and so users largely don't interact with it.
Now that inlay-hints are clickable with goto-type semantics, users are way more exposed to goto-type, and so the random places where goto-type fails out are way more noticeable.
goto-type is just a thin wrapper around Type::definition:
Notably all SpecialForms yield None, which means e.g. you can't click on Literal in an inlay hint, even though it would be nice for it to go to typing.Literal's definition (where we could potentially have docs explaining Literals In General).