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
298298 } ) ) ;
299299 this . _taskRunningState = TASK_RUNNING_STATE . bindTo ( _contextKeyService ) ;
300300 this . _onDidStateChange = this . _register ( new Emitter ( ) ) ;
301- this . _registerCommands ( ) . then ( ( ) => TaskCommandsRegistered . bindTo ( this . _contextKeyService ) . set ( true ) ) ;
302301 ServerlessWebContext . bindTo ( this . _contextKeyService ) . set ( Platform . isWeb && ! remoteAgentService . getConnection ( ) ?. remoteAuthority ) ;
303302 this . _configurationResolverService . contributeVariable ( 'defaultBuildTask' , async ( ) : Promise < string | undefined > => {
304303 let tasks = await this . _getTasksForGroup ( TaskGroup . Build ) ;
@@ -335,6 +334,8 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
335334 this . _waitForSupportedExecutions = new Promise ( resolve => {
336335 once ( this . _onDidRegisterSupportedExecutions . event ) ( ( ) => resolve ( ) ) ;
337336 } ) ;
337+
338+ this . _registerCommands ( ) . then ( ( ) => TaskCommandsRegistered . bindTo ( this . _contextKeyService ) . set ( true ) ) ;
338339 if ( this . _terminalService . getReconnectedTerminals ( 'Task' ) ?. length ) {
339340 this . _attemptTaskReconnection ( ) ;
340341 } else {
@@ -344,7 +345,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
344345 }
345346 } ) ) ;
346347 }
347-
348+ this . getSavedTasks ( 'historical' ) . then ( ( ) => ( this . _registerCommands ( ) . then ( ( ) => TaskCommandsRegistered . bindTo ( this . _contextKeyService ) . set ( true ) ) ) ) ;
348349 this . _upgrade ( ) ;
349350 }
350351
You can’t perform that action at this time.
0 commit comments