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
451
451
when : CONTEXT_UPDATE_STATE . isEqualTo ( StateType . Updating )
452
452
} ) ;
453
453
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
-
464
454
CommandsRegistry . registerCommand ( 'update.showUpdateReleaseNotes' , ( ) => {
465
455
if ( this . updateService . state . type !== StateType . Ready ) {
466
456
return ;
@@ -478,6 +468,16 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu
478
468
when : CONTEXT_UPDATE_STATE . isEqualTo ( StateType . Ready )
479
469
} ) ;
480
470
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
+
481
481
CommandsRegistry . registerCommand ( '_update.state' , ( ) => {
482
482
return this . state ;
483
483
} ) ;
You can’t perform that action at this time.
0 commit comments