You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default behaviour of the Terminate/Restart Current Task if only one task to choose that task automatically #51699
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
vscodebot commentedon Jun 12, 2018
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
dbaeumer commentedon Jun 13, 2018
Dups #47853.
Gama11 commentedon 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 commentedon Jun 14, 2018
I ended up implementing a workaround using the new tasks API:
https://marketplace.visualstudio.com/items?itemName=vshaxe.terminator
GeorgeWL commentedon Jun 15, 2018
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)
Gama11 commentedon Jun 15, 2018
Yeah, I suppose you're right. It's a bit different, but still related. :)