File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
src/vs/workbench/contrib/update/browser Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -451,16 +451,6 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu
451451 when : CONTEXT_UPDATE_STATE . isEqualTo ( StateType . Updating )
452452 } ) ;
453453
454- CommandsRegistry . registerCommand ( 'update.restart' , ( ) => this . updateService . quitAndInstall ( ) ) ;
455- MenuRegistry . appendMenuItem ( MenuId . GlobalActivity , {
456- group : '7_update' ,
457- command : {
458- id : 'update.restart' ,
459- title : nls . localize ( 'restartToUpdate' , "Restart to Update (1)" )
460- } ,
461- when : CONTEXT_UPDATE_STATE . isEqualTo ( StateType . Ready )
462- } ) ;
463-
464454 CommandsRegistry . registerCommand ( 'update.showUpdateReleaseNotes' , ( ) => {
465455 if ( this . updateService . state . type !== StateType . Ready ) {
466456 return ;
@@ -478,6 +468,16 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu
478468 when : CONTEXT_UPDATE_STATE . isEqualTo ( StateType . Ready )
479469 } ) ;
480470
471+ CommandsRegistry . registerCommand ( 'update.restart' , ( ) => this . updateService . quitAndInstall ( ) ) ;
472+ MenuRegistry . appendMenuItem ( MenuId . GlobalActivity , {
473+ group : '7_update' ,
474+ command : {
475+ id : 'update.restart' ,
476+ title : nls . localize ( 'restartToUpdate' , "Restart to Update (1)" )
477+ } ,
478+ when : CONTEXT_UPDATE_STATE . isEqualTo ( StateType . Ready )
479+ } ) ;
480+
481481 CommandsRegistry . registerCommand ( '_update.state' , ( ) => {
482482 return this . state ;
483483 } ) ;
You can’t perform that action at this time.
0 commit comments