Skip to content

Commit ae71ec5

Browse files
committed
in build command, await workspace tasks
1 parent 02dd400 commit ae71ec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
345345
}
346346
}));
347347
}
348-
this.getSavedTasks('historical').then(() => (this._registerCommands().then(() => TaskCommandsRegistered.bindTo(this._contextKeyService).set(true))));
348+
this._registerCommands().then(() => TaskCommandsRegistered.bindTo(this._contextKeyService).set(true));
349349
this._upgrade();
350350
}
351351

@@ -2907,7 +2907,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
29072907
title: strings.fetching
29082908
};
29092909
const promise = (async () => {
2910-
2910+
await this.getWorkspaceTasks();
29112911
let taskGroupTasks: (Task | ConfiguringTask)[] = [];
29122912

29132913
async function runSingleTask(task: Task | undefined, problemMatcherOptions: IProblemMatcherRunOptions | undefined, that: AbstractTaskService) {

0 commit comments

Comments
 (0)