Fix show tasks when not tasks are running

Fixes #129452
This commit is contained in:
Alex Ross 2021-07-27 17:04:44 +02:00
parent e0b020da56
commit e1e66f336c
No known key found for this signature in database
GPG key ID: 89DDDBA66CBA7840

View file

@ -3185,7 +3185,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
let group: string | undefined;
if (activeTasks.length === 1) {
this._taskSystem!.revealTask(activeTasks[0]);
} else if (activeTasks.every((task) => {
} else if (activeTasks.length && activeTasks.every((task) => {
if (InMemoryTask.is(task)) {
return false;
}