Open ManuelRauber opened 2 hours ago
Summary: The issue is that Dart's auto-complete suggests too many imports when using custom extension methods/properties. It suggests files that import the extensions but don't re-export them, leading to an excessive number of suggestions.
Steps to reproduce
lib/package-c/example-c.dart
.c.hasContent
and observe the auto complete suggestions:The auto complete shows too many completion suggestions. There should only be the last one. The other two suggestions are just files importing the extensions as well, but not (re-) exporting them. If you create more files importing the extensions the more suggestions you will get.
Expected result:
I expect only to see the correct import of the file that also exports the extensions.
Actual result:
I see suggestions of files that only import the extensions for their own usage.
Additional information
Here is a GitHub Repo with an example to test yourself.
Used versions