Add quick fix to add import with prefix #24338
Labels
devexp-quick-fix
Issues with analysis server (quick) fixes
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
There is a quick fix to add an import for an unknown type name, but when the type name is qualified the only fix suggestion is to define the class (which is not a valid fix and shouldn't be suggested). For example, enter the following code into a Dart file:
class C {
prefix.String s;
}
and place the cursor inside the identifier 'String'. It would be nice if one of the suggested fixes was to add an import (of dart:core, in this case) with the given prefix.
The text was updated successfully, but these errors were encountered: