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
Since in Dart oftentimes the type is not visible in the code (i.e. when making use of type inference), it is sometimes not straightforward to find the type written out to ctrl+click it to go to its definition.
I'd suggest adding a link to the type definition on hover, similar to what rust-analyzer does:
For instances of generic types it looks like this:
I think this feature would make it much easier to quickly go to type definitions.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion - I really like this! Not being able to easily navigate to some types has come up a few times and it's good to see another language already providing something. Rust is using some custom LSP fields to make this work so the Dart server would need to do similar (at least until/unless microsoft/language-server-protocol#642 is implemented).
Since in Dart oftentimes the type is not visible in the code (i.e. when making use of type inference), it is sometimes not straightforward to find the type written out to
ctrl
+click it to go to its definition.I'd suggest adding a link to the type definition on hover, similar to what
rust-analyzer
does:For instances of generic types it looks like this:
I think this feature would make it much easier to quickly go to type definitions.
The text was updated successfully, but these errors were encountered: