-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go to type definition should go to typedef #57013
Comments
Summary: The "Go to Type Definition" functionality is not working for variables within a lambda function, specifically for |
I was thinking this would give me instances but it actually gives me constructors so because it is a |
I was thinking of why I got confused there, and then I remembered that I only saw the type like a |
I think what you're proposing is that "Go to type definition", at least for a function type, should navigate to the typedef, when there is one. If so, I think that's reasonable. For consistency we should probably do that for any type that was defined using a typedef. I'm not sure whether we have that information available, but I think we do at least some times. |
#39332 is a similar issue where showing the |
I think I'll close this in favour of that one then since it is older and has more discussion. Thanks! |
(I'm not certain one fix will fix both, one is about hovers and one is about Type Def... but they're similar enough that the fix could be the same even if it has to be made in two places) |
If needed we can always reopen this again, I'll keep that in mind though |
I found some problems with |
Even after the fix for #56844 I'm still having an issue when working on the SDK. This is the link for the base change I made to see the problem https://github.com/FMorschel/sdk/tree/go-to-type-definition-inside-expanded.
Here is a repro of that part inside
pkg/analysis_server_plugin/lib/src/correction/fix_in_file_processor.dart
:In here, with the latest SDK (got mine updated today actually to see if this was solved) I can't seem to activate
Go to Type Definition
on eithermultiProducer
from the parameter or the one from the useless statement.I can activate it with no problem on
registeredFixGenerators
ornonLintMultiProducers
.I'm still looking at this to try and find a better repro but in the meantime, I was instructed by @DanTup to create this issue so that others can take a look as well.
The text was updated successfully, but these errors were encountered: