Skip to content

Commit 7cd1e2e

Browse files
committed
command "restart running task" now doesn't show quick pick if there's only one active task
1 parent 73e2dd7 commit 7cd1e2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3118,6 +3118,11 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
31183118

31193119
const activeTasks = await this.getActiveTasks();
31203120

3121+
if (activeTasks.length === 1) {
3122+
this._restart(activeTasks[0]);
3123+
return;
3124+
}
3125+
31213126
if (this.inTerminal()) {
31223127
// try dispatching using task identifier
31233128
const identifier = this._getTaskIdentifier(arg);

0 commit comments

Comments
 (0)