@@ -458,23 +458,25 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu
458
458
when : CONTEXT_UPDATE_STATE . isEqualTo ( StateType . Updating )
459
459
} ) ;
460
460
461
- CommandsRegistry . registerCommand ( 'update.showUpdateReleaseNotes' , ( ) => {
462
- if ( this . updateService . state . type !== StateType . Ready ) {
463
- return ;
464
- }
461
+ if ( this . productService . quality === 'stable' ) {
462
+ CommandsRegistry . registerCommand ( 'update.showUpdateReleaseNotes' , ( ) => {
463
+ if ( this . updateService . state . type !== StateType . Ready ) {
464
+ return ;
465
+ }
465
466
466
- const version = this . updateService . state . update . version ;
467
- this . instantiationService . invokeFunction ( accessor => showReleaseNotes ( accessor , version ) ) ;
468
- } ) ;
469
- MenuRegistry . appendMenuItem ( MenuId . GlobalActivity , {
470
- group : '7_update' ,
471
- order : 1 ,
472
- command : {
473
- id : 'update.showUpdateReleaseNotes' ,
474
- title : nls . localize ( 'showUpdateReleaseNotes' , "Show Update Release Notes" )
475
- } ,
476
- when : ContextKeyExpr . and ( CONTEXT_UPDATE_STATE . isEqualTo ( StateType . Ready ) , MAJOR_MINOR_UPDATE_AVAILABLE )
477
- } ) ;
467
+ const version = this . updateService . state . update . version ;
468
+ this . instantiationService . invokeFunction ( accessor => showReleaseNotes ( accessor , version ) ) ;
469
+ } ) ;
470
+ MenuRegistry . appendMenuItem ( MenuId . GlobalActivity , {
471
+ group : '7_update' ,
472
+ order : 1 ,
473
+ command : {
474
+ id : 'update.showUpdateReleaseNotes' ,
475
+ title : nls . localize ( 'showUpdateReleaseNotes' , "Show Update Release Notes" )
476
+ } ,
477
+ when : ContextKeyExpr . and ( CONTEXT_UPDATE_STATE . isEqualTo ( StateType . Ready ) , MAJOR_MINOR_UPDATE_AVAILABLE )
478
+ } ) ;
479
+ }
478
480
479
481
CommandsRegistry . registerCommand ( 'update.restart' , ( ) => this . updateService . quitAndInstall ( ) ) ;
480
482
MenuRegistry . appendMenuItem ( MenuId . GlobalActivity , {
0 commit comments