Skip to content

Conversation

@rodrigogmdias
Copy link
Contributor

This Pull Request adds a new command to the DartCode extension for Visual Studio Code, enabling users to run pub get for all Dart projects within the workspace. This feature streamlines the process of fetching dependencies for multiple projects, enhancing productivity and efficiency.

Changes

  • Added a new command dart.getAllPubGet to execute pub get for all projects.
  • Updated the command palette to include the new command.
  • Modified the extension activation logic to register the new command.

@DanTup DanTup added this to the v3.94.0 milestone Jul 8, 2024
@DanTup DanTup added is enhancement in commands Relates to commands (usually invoked from the command Palette) labels Jul 8, 2024
Copy link
Member

@DanTup DanTup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've pushed some minor tweaks and some tests and will merge once the bots are done.

@DanTup DanTup merged commit f1a0240 into Dart-Code:master Jul 8, 2024
@DanTup
Copy link
Member

DanTup commented Jul 8, 2024

This feature streamlines the process of fetching dependencies for multiple projects, enhancing productivity and efficiency.

btw, the extension should detect when this is required when you open the project, and it should watch Pubspec for changes to run again.

I don't think having this command is a problem, but if it seems like you need to use this command frequently, there may be something not working correctly (unless you have deliberately turned off those other features).

@rodrigogmdias
Copy link
Contributor Author

rodrigogmdias commented Jul 8, 2024

Thx and Perfect.

I work in monorepo project of a big project. Sometimes I need run pub get in all because I add a folder with many submodules in my workspace or bacause I change flutter version and sometimes in git pull not working on opening project.

For this, I resolved create manual command. 😃

@DanTup
Copy link
Member

DanTup commented Jul 8, 2024

Gotcha, this makes perfect sense then, thanks!

This change will be included in the next release (releases are usually at the start of the month), and may show up in a pre-release version before then (todays pre-release was unfortunately before I merged this so it's not included in that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants