File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/vs/workbench/contrib/tasks/browser Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,6 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
298
298
} ) ) ;
299
299
this . _taskRunningState = TASK_RUNNING_STATE . bindTo ( _contextKeyService ) ;
300
300
this . _onDidStateChange = this . _register ( new Emitter ( ) ) ;
301
- this . _registerCommands ( ) . then ( ( ) => TaskCommandsRegistered . bindTo ( this . _contextKeyService ) . set ( true ) ) ;
302
301
ServerlessWebContext . bindTo ( this . _contextKeyService ) . set ( Platform . isWeb && ! remoteAgentService . getConnection ( ) ?. remoteAuthority ) ;
303
302
this . _configurationResolverService . contributeVariable ( 'defaultBuildTask' , async ( ) : Promise < string | undefined > => {
304
303
let tasks = await this . _getTasksForGroup ( TaskGroup . Build ) ;
@@ -335,6 +334,8 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
335
334
this . _waitForSupportedExecutions = new Promise ( resolve => {
336
335
once ( this . _onDidRegisterSupportedExecutions . event ) ( ( ) => resolve ( ) ) ;
337
336
} ) ;
337
+
338
+ this . _registerCommands ( ) . then ( ( ) => TaskCommandsRegistered . bindTo ( this . _contextKeyService ) . set ( true ) ) ;
338
339
if ( this . _terminalService . getReconnectedTerminals ( 'Task' ) ?. length ) {
339
340
this . _attemptTaskReconnection ( ) ;
340
341
} else {
@@ -344,7 +345,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
344
345
}
345
346
} ) ) ;
346
347
}
347
-
348
+ this . getSavedTasks ( 'historical' ) . then ( ( ) => ( this . _registerCommands ( ) . then ( ( ) => TaskCommandsRegistered . bindTo ( this . _contextKeyService ) . set ( true ) ) ) ) ;
348
349
this . _upgrade ( ) ;
349
350
}
350
351
You can’t perform that action at this time.
0 commit comments