@@ -223,7 +223,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
223
223
224
224
protected _outputChannel : IOutputChannel ;
225
225
protected readonly _onDidStateChange : Emitter < ITaskEvent > ;
226
- private _waitForSupportedExecutions : Promise < void > ;
226
+ private _waitForOneSupportedExecution : Promise < void > ;
227
227
private _waitForAllSupportedExecutions : Promise < void > ;
228
228
private _onDidRegisterSupportedExecutions : Emitter < void > = new Emitter ( ) ;
229
229
private _onDidRegisterAllSupportedExecutions : Emitter < void > = new Emitter ( ) ;
@@ -335,7 +335,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
335
335
this . _setPersistentTask ( e . __task ) ;
336
336
}
337
337
} ) ) ;
338
- this . _waitForSupportedExecutions = new Promise ( resolve => {
338
+ this . _waitForOneSupportedExecution = new Promise ( resolve => {
339
339
once ( this . _onDidRegisterSupportedExecutions . event ) ( ( ) => resolve ( ) ) ;
340
340
} ) ;
341
341
this . _waitForAllSupportedExecutions = new Promise ( resolve => {
@@ -2209,10 +2209,10 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
2209
2209
if ( ! ( await this . _trust ( ) ) ) {
2210
2210
return new Map ( ) ;
2211
2211
}
2212
- await this . _waitForSupportedExecutions ;
2212
+ await this . _waitForOneSupportedExecution ;
2213
2213
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' ) ;
2216
2216
} ) ;
2217
2217
}
2218
2218
await this . _whenTaskSystemReady ;
@@ -2891,7 +2891,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
2891
2891
/**
2892
2892
*
2893
2893
* @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)
2895
2895
* @returns
2896
2896
*/
2897
2897
private _getDefaultTasks ( tasks : Task [ ] , taskGlobsInList : boolean = false ) : Task [ ] {
0 commit comments