Skip to content

Default behaviour of the Terminate/Restart Current Task if only one task to choose that task automatically #51699

Closed

Description

If one were to run workbench.actions.tasks.terminate or workbench.actions.tasks.restart after setting a custom keybinding for them, the UI will always prompt for the user to choose which tasks to restart/terminate.

This is great if there's multiple tasks running. But if there's only one task running then it can be a major annoyance and slow down your workflow.

I propose that the behaviour can be set (with a workbench setting) to select the only running item by default if there's no other running tasks. (A naive tasks.length == 1 check would do it or something like that?)

Activity

  1. dbaeumer commented on Jun 13, 2018

    @dbaeumer
    Member

    Dups #47853.

  2. Gama11 commented on Jun 13, 2018

    @Gama11
    Contributor

    I'm very much looking forward to a solution to this as well. I've wasted countless clicks on that "terminate previous task" button. :)

  3. Gama11 commented on Jun 14, 2018

    @Gama11
    Contributor

    I ended up implementing a workaround using the new tasks API:

    https://marketplace.visualstudio.com/items?itemName=vshaxe.terminator

  4. GeorgeWL commented on Jun 15, 2018

    @GeorgeWL
    Author

    that's not really related to this issue at all...it does get rid of the popup I suppose, which is another unrelated issue. Jens Fischer (@Gama11)

  5. Gama11 commented on Jun 15, 2018

    @Gama11
    Contributor

    Yeah, I suppose you're right. It's a bit different, but still related. :)

  6. locked and limited conversation to collaborators on Jul 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

tasksTask system issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions