In Flutter version 3.24, when using Ctrl + Space to show methods created via extension, the autocomplete displays all locations where the extension is used, rather than just the file where it is declared.
Steps to Reproduce
Create an extension method in a Dart file.
Use Ctrl + Space to trigger autocomplete for the extension method.
Observe that the autocomplete shows all locations where the extension is used, not just the declaration file.
Version info
[√] Flutter (Channel stable, 3.24.0, on Microsoft Windows [versÆo 10.0.22631.3880], locale pt-BR)
• Flutter version 3.24.0 on channel stable at C:\tools\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 80c2e84975 (10 days ago), 2024-07-30 23:06:49 +0700
• Engine revision b8800d88be
• Dart version 3.5.0
• DevTools version 2.37.2
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at C:\Users\Alessandro\AppData\Local\Android\sdk
X cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/to/windows-android-setup for more details.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.4)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.10.35027.167
• Windows 10 SDK version 10.0.22621.0
[√] Android Studio (version 2024.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)
[√] IntelliJ IDEA Ultimate Edition (version 2024.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2024.1.4
• Flutter plugin version 80.0.2
• Dart plugin version 241.18808
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [versÆo 10.0.22631.3880]
• Chrome (web) • chrome • web-javascript • Google Chrome 127.0.6533.100
• Edge (web) • edge • web-javascript • Microsoft Edge 127.0.2651.86
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
In Flutter version 3.24, when using Ctrl + Space to show methods created via extension, the autocomplete displays all locations where the extension is used, rather than just the file where it is declared.
Steps to Reproduce
Create an extension method in a Dart file. Use Ctrl + Space to trigger autocomplete for the extension method. Observe that the autocomplete shows all locations where the extension is used, not just the declaration file.
Version info