mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-30 10:38:28 +01:00
ensure workspace tasks
This commit is contained in:
@@ -2756,8 +2756,16 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
|
||||
return true;
|
||||
}
|
||||
|
||||
private async _ensureWorkspaceTasks(): Promise<void> {
|
||||
if (!this._workspaceTasksPromise) {
|
||||
await this.getWorkspaceTasks();
|
||||
} else {
|
||||
await this._workspaceTasksPromise;
|
||||
}
|
||||
}
|
||||
|
||||
private async _runTaskCommand(filter?: string | ITaskIdentifier): Promise<void> {
|
||||
await this._waitForTaskSystem();
|
||||
await this._ensureWorkspaceTasks();
|
||||
if (!filter) {
|
||||
return this._doRunTaskCommand();
|
||||
}
|
||||
@@ -2915,7 +2923,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
|
||||
title: strings.fetching
|
||||
};
|
||||
const promise = (async () => {
|
||||
await this._waitForTaskSystem();
|
||||
await this._ensureWorkspaceTasks();
|
||||
let taskGroupTasks: (Task | ConfiguringTask)[] = [];
|
||||
|
||||
async function runSingleTask(task: Task | undefined, problemMatcherOptions: IProblemMatcherRunOptions | undefined, that: AbstractTaskService) {
|
||||
|
||||
Reference in New Issue
Block a user