Skip to content

dart pub upgrade --major-versions #3216

@jonasfj

Description

@jonasfj

The offers a command to run dart pub upgrade.

It would be cool to have a Control + Shift + P command to do:

  • dart pub upgrade --major-versions

Running dart pub upgrade --major-versions does mutate the pubspec.yaml.

In an ideal world we could perhaps snapshot the pubspec.yaml before / after running dart pub upgrade --major-versions and present the user with a diff. Or something like that?

Or maybe we open the pubspec.yaml and do some tricks to ensure that the on-disk-mutation of pubspec.yaml can be reverted using the undo-stack.

Or maybe we simply ask for confirmation before running dart pub upgrade --major-versions if the current pubspec.yaml haven't been committed to git?


I imagine that this would appear in the Control + Shift + P command palette along side dart pub upgrade:

dart-code-pub-upgrade


Just a feature request, to help users discover this feature.

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