Quickfix to add package to pubspec.yaml. #42159
Labels
analyzer-server
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P4
type-enhancement
A request for a change that isn't a bug
If I write
import "package:foo/foo.dart";
, and there is nofoo
package in my package configuration, could we have a quick-fix to add it to thepubspec.yaml
file (and runpub get
).(Make it a dev_dependency if the file is not in
lib/
.)Is that possible, or must quick-fixes be in the same file?
An alternative would be a
pub
command likepub depend foo
which adds afoo
dependency to thepubspec.yaml
file, but that requires the user to leave the editor.The text was updated successfully, but these errors were encountered: