Autocomplete context unaware suggestions #48012
Labels
analyzer-completion
Issues with the analysis server's code completion feature
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
Setup: Win11, Flutter 2.8.1 • channel stable, Dart 2.15.1, Android Studio 2020.3.1, IntelliJ IDEA 2021.3 (Ultimate Edition)
Flutter/Dart autocomplete gives a suggestion list that is initially populated with completely unrelated entries that push any useful suggestions much further down. Here is an example from the default flutter project where the required argument for mainAxisAlignment is of type MainAxisAlignment:
The suggestions above are generated by ctrl+space, ctrl+alt+space gives no suggestions.
I spent hours searching for a solution and trying everything mentioned with no improvements so far. I get the same autocomplete results on both Android Studio & IntelliJ IDEA. Any idea how to fix the quality of autocompletion?
Flutter doctor results (the one reported issue is supposedly harmless):
The text was updated successfully, but these errors were encountered: