Skip to content
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

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

Closed
GeorgeWL opened this issue Jun 12, 2018 · 6 comments
Assignees
Labels
tasks Task system issues

Comments

@GeorgeWL
Copy link

GeorgeWL commented Jun 12, 2018

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?)

@vscodebot vscodebot bot added the tasks Task system issues label Jun 12, 2018
@dbaeumer
Copy link
Member

Dups #47853.

@Gama11
Copy link
Contributor

Gama11 commented Jun 13, 2018

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

@Gama11
Copy link
Contributor

Gama11 commented Jun 14, 2018

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

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

@GeorgeWL
Copy link
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. @Gama11

@Gama11
Copy link
Contributor

Gama11 commented Jun 15, 2018

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

@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tasks Task system issues
Projects
None yet
Development

No branches or pull requests

3 participants