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