Skip to content

Don't switch to Output tab when automatically installing packages #2280

Closed

Description

@tp

This extension seems to always the Output tab when it finds the packages are not up to date with pubspec.yaml and hence auto-fetches the latest packages. (I assume it's an extension issue and not a general VS Code behavior from this comment: microsoft/vscode#34221 (comment))

In my case this happens always when I am actively doing something in the integrated terminal, but makes it especially jarring as it breaks my flow: E.g. after checking out another Git branch with a different pubspec it switches to the Output tab and I have to manually switch back before continuing in the terminal (for example in this case often creating a new branch).

image

Proposed Solution

Either

  • Offer an option to disable the automatic switching
  • Just show a notification in the usual success case instead

Thanks!

Activity

  1. DanTup commented on Feb 29, 2020

    @DanTup
    Member

    Yep, this is done by the extension and I think it's fair to not force this - we could add each line to the existing notification status and then just switch to the output window if the exit code is non-zero (or if possible, add a button for "Show Output"). Same probably applies for the other commands that run through the same code.

  2. added
    in commandsRelates to commands (usually invoked from the command Palette)
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Feb 29, 2020
  3. added this to the v3.9.0 milestone on Feb 29, 2020
  4. uniquejava commented on Mar 11, 2020

    @uniquejava

    Hello.

    I am mad about this.

    I am working on TERMINAL tab (say. entering some git commands)

    but this plugin constantly disturbs me.

    it's auto switching to the OUTPUT tab(even I hide it )

    with the following messages from OUTPUT

    exit code 0
    [sales_anchor_app] flutter packages get
    Running "flutter pub get" in sales_anchor_app...                    0.5s
    exit code 0
    [sales_anchor_app] flutter packages get
    Running "flutter pub get" in sales_anchor_app...                    0.5s
    exit code 0
    

    I can't find any settings about this. Can I temporarily disable the output.

  5. fbettag commented on Dec 18, 2025

    @fbettag

    It's almost 6 years later and this issue is still happening.

  6. DanTup commented on Dec 18, 2025

    @DanTup
    Member

    @fbettag please file an issue with more details if you think something isn't working correctly. I've just tested and the output pane was not shown (the code change that closed this issue set it to only show if there is a non-zero exit code).

  7. fbettag commented on Dec 18, 2025

    @fbettag

    @fbettag please file an issue with more details if you think something isn't working correctly. I've just tested and the output pane was not shown (the code change that closed this issue set it to only show if there is a non-zero exit code).

    which happens every 5 seconds when you're using agentic coding. from an UX perspective this is absolutely terrible to just switch views without the user asking for it. other languages/frameworks can do it too.

  8. DanTup commented on Dec 18, 2025

    @DanTup
    Member

    @fbettag it's not clear to me why using agentic coding would result in a failed pub get every 5 seconds.

    Not switching to the output tab when pub get fails could also be a considered terrible UX because it would be unclear why a package you just added is not working.

    I'm happy to look at this, but you need to file a new issue and provide some more details, because there's not enough here for me to understand or fix the problem. Thanks!

  9. locked as resolved and limited conversation to collaborators on Dec 18, 2025
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 enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions