@@ -223,7 +223,6 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
223
223
224
224
protected _outputChannel : IOutputChannel ;
225
225
protected readonly _onDidStateChange : Emitter < ITaskEvent > ;
226
- private _waitForOneSupportedExecution : Promise < void > ;
227
226
private _waitForAllSupportedExecutions : Promise < void > ;
228
227
private _onDidRegisterSupportedExecutions : Emitter < void > = new Emitter ( ) ;
229
228
private _onDidRegisterAllSupportedExecutions : Emitter < void > = new Emitter ( ) ;
@@ -335,9 +334,6 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
335
334
this . _setPersistentTask ( e . __task ) ;
336
335
}
337
336
} ) ) ;
338
- this . _waitForOneSupportedExecution = new Promise ( resolve => {
339
- once ( this . _onDidRegisterSupportedExecutions . event ) ( ( ) => resolve ( ) ) ;
340
- } ) ;
341
337
this . _waitForAllSupportedExecutions = new Promise ( resolve => {
342
338
once ( this . _onDidRegisterAllSupportedExecutions . event ) ( ( ) => resolve ( ) ) ;
343
339
} ) ;
@@ -1957,6 +1953,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
1957
1953
}
1958
1954
1959
1955
private async _getGroupedTasks ( filter ?: ITaskFilter ) : Promise < TaskMap > {
1956
+ await this . _waitForAllSupportedExecutions ;
1960
1957
const type = filter ?. type ;
1961
1958
const needsRecentTasksMigration = this . _needsRecentTasksMigration ( ) ;
1962
1959
await this . _activateTaskProviders ( filter ?. type ) ;
@@ -2209,12 +2206,9 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
2209
2206
if ( ! ( await this . _trust ( ) ) ) {
2210
2207
return new Map ( ) ;
2211
2208
}
2212
- await this . _waitForOneSupportedExecution ;
2213
- if ( runSource === TaskRunSource . Reconnect ) {
2214
- await raceTimeout ( this . _waitForAllSupportedExecutions , 2000 , ( ) => {
2215
- this . _logService . warn ( 'Timed out waiting for all supported executions for task reconnection' ) ;
2216
- } ) ;
2217
- }
2209
+ await raceTimeout ( this . _waitForAllSupportedExecutions , 2000 , ( ) => {
2210
+ this . _logService . warn ( 'Timed out waiting for all supported executions' ) ;
2211
+ } ) ;
2218
2212
await this . _whenTaskSystemReady ;
2219
2213
if ( this . _workspaceTasksPromise ) {
2220
2214
return this . _workspaceTasksPromise ;
0 commit comments