Skip to content

"Get packages" runs "flutter pub get" for Dart package when workspace contains a Flutter package #3237

Closed

Description

@isoos

I've started to use VSCode with WSL2 remote, and I have a mixed set of projects using Dart and Flutter SDKs. (Note: this may have been already implemented, I just don't know where to look for it).

Right now if I open pubspec.yaml and click on get packages, I'll always get flutter pub get running. Instead, I'd like to control if a subfolder uses only the Dart SDK, and in such cases I'd like to have dart pub get running.

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Mar 29, 2021
  2. added
    in commandsRelates to commands (usually invoked from the command Palette)
    and removed
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Mar 29, 2021
  3. added this to the v3.21.0 milestone on Mar 29, 2021
  4. changed the title [-]subfolder-specific settings[/-] [+]"Get packages" runs "flutter pub get" for Dart package when workspace contains a Flutter package[/+] on Mar 29, 2021
  5. DanTup commented on Mar 29, 2021

    @DanTup
    Member

    This is a bug - it is intended to work as you expected:

    if (util.isInsideFlutterProject(uri))
    return this.runFlutter(["pub", "get"], uri);
    else
    return this.runPub(["get"], uri);

    But in some places (like that menu bar) it seems to still be calling a Flutter-specific version.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions