Analyzer quick-fix: Add import with show
.
#55842
Labels
analyzer-quick-fix
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
The analyzer has a quick-fix, "Import library ...", for adding an import for a name that's not in the current library's scope.
I'd like a variant of that, which adds the same import, but with a
show Name
added, anImport library ... with show ...
, or something like that.The functionality to add a name to a
show
clause already exists:show
clause for all already used names, andshow Name
myself, then writes the name of another declaration from the same library, I get an "Update library ... import" which adds the name to theshow
clause.I just want to avoid moving the cursor away from where I'm writing, and get the
show
clause from the start.Example of what I'd want:
The text was updated successfully, but these errors were encountered: