Skip to content

Add a command to "add package" that calls "pub add" #3306

@DanTup

Description

@DanTup

Pub has both a command for adding new packages, and an API to get all package names for completion. With these, we could add a command palette command to add packages that would avoid having to modify the pubspec directly.

In the past, some issues have been reported that turned out to be subtly-incorrect indentation in pubspec, so handing off the editing to Pub for simple tasks like this might save some of those.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in commandsRelates to commands (usually invoked from the command Palette)is enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions