-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dart pub get - in all sub folders? #3855
Comments
Good question We have I think one might have We have Side-note: I believe mono-repo supports a command like |
@DanTup What is the logic in DartCode? |
In Dart-Code we walk down the open workspaces folders and collect the set of projects (where we find Worth noting that in VS Code you can have multiple folders in your workspace, so if you had:
You could open a workspace that has It could be useful if we only needed to run On a massive tangent...: Something I often think about, is a general "tools service" that tools like Flutter, Pub, Dart, package:test could be available in. Right now there are a bunch of utilities that are just process invocations that don't match the way an editor works very well. I could imagine some "super service" that is long-running with the editor that can perform tasks like:
Currently a lot of these tasks are spawning new processes and the editor has to manage them all, but in many cases that includes logic that might be better inside the tool itself (for example Dart-Code is checking timestamps on files like |
@dcharkes Does making I think pub going through all subfolders for |
I have lost context of what workflow I had when I was filing this issue. (And I'm mostly work from VS Code with Dart Code where I can rely on it's behavior, so it must have been a workflow where I was not in VS Code.) Maybe we should not optimize for my specific workflow in a specific point in time. So far my issue only has one upvote, so maybe not many people are running into this. |
Ok, will close as no-action for now. Please reopen/open a new issue if we should consider doing more. |
|
I'm actually surprised by this. I think we just invoke |
Should we consider letting
dart pub get
do adart pub get
in all folders that contain apubspec.yaml
?For example, when one has a package with an
example/
folder that contains a full package.Or when opening a mono-repo with
pkgs/
.I often find myself manually going to folders to do
pub get
.Flutter already does this by default.
And so does Dart-Code the VSCode plugin.
(I believe this was discussed before, but I can't find a tracking bug.)
The text was updated successfully, but these errors were encountered: