Auto complete shows too many suggestions on types that have custom extension methods/properties #56760
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
triage-automation
See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
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
The text was updated successfully, but these errors were encountered: