Skip to content

Commit 58969b4

Browse files
committed
increase time, rename
1 parent dd68b3f commit 58969b4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
223223

224224
protected _outputChannel: IOutputChannel;
225225
protected readonly _onDidStateChange: Emitter<ITaskEvent>;
226-
private _waitForSupportedExecutions: Promise<void>;
226+
private _waitForOneSupportedExecution: Promise<void>;
227227
private _waitForAllSupportedExecutions: Promise<void>;
228228
private _onDidRegisterSupportedExecutions: Emitter<void> = new Emitter();
229229
private _onDidRegisterAllSupportedExecutions: Emitter<void> = new Emitter();
@@ -335,7 +335,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
335335
this._setPersistentTask(e.__task);
336336
}
337337
}));
338-
this._waitForSupportedExecutions = new Promise(resolve => {
338+
this._waitForOneSupportedExecution = new Promise(resolve => {
339339
once(this._onDidRegisterSupportedExecutions.event)(() => resolve());
340340
});
341341
this._waitForAllSupportedExecutions = new Promise(resolve => {
@@ -2209,10 +2209,10 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
22092209
if (!(await this._trust())) {
22102210
return new Map();
22112211
}
2212-
await this._waitForSupportedExecutions;
2212+
await this._waitForOneSupportedExecution;
22132213
if (runSource === TaskRunSource.Reconnect) {
2214-
await raceTimeout(this._waitForAllSupportedExecutions, 500, () => {
2215-
console.warn('Timed out waiting for all supported executions for task reconnection');
2214+
await raceTimeout(this._waitForAllSupportedExecutions, 2000, () => {
2215+
this._logService.warn('Timed out waiting for all supported executions for task reconnection');
22162216
});
22172217
}
22182218
await this._whenTaskSystemReady;
@@ -2891,7 +2891,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
28912891
/**
28922892
*
28932893
* @param tasks - The tasks which need to be filtered
2894-
* @param taskGlobsInList - This tells splitPerGroupType to filter out globbed tasks (into defaults)
2894+
* @param tasksInList - This tells splitPerGroupType to filter out globbed tasks (into defaults)
28952895
* @returns
28962896
*/
28972897
private _getDefaultTasks(tasks: Task[], taskGlobsInList: boolean = false): Task[] {

0 commit comments

Comments
 (0)