File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/vs/workbench/contrib/update/browser Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -461,6 +461,23 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu
461461 when : CONTEXT_UPDATE_STATE . isEqualTo ( StateType . Ready )
462462 } ) ;
463463
464+ CommandsRegistry . registerCommand ( 'update.showUpdateReleaseNotes' , ( ) => {
465+ if ( this . updateService . state . type !== StateType . Ready ) {
466+ return ;
467+ }
468+
469+ const version = this . updateService . state . update . version ;
470+ this . instantiationService . invokeFunction ( accessor => showReleaseNotes ( accessor , version ) ) ;
471+ } ) ;
472+ MenuRegistry . appendMenuItem ( MenuId . GlobalActivity , {
473+ group : '7_update' ,
474+ command : {
475+ id : 'update.showUpdateReleaseNotes' ,
476+ title : nls . localize ( 'showUpdateReleaseNotes' , "Show Update Release Notes" )
477+ } ,
478+ when : CONTEXT_UPDATE_STATE . isEqualTo ( StateType . Ready )
479+ } ) ;
480+
464481 CommandsRegistry . registerCommand ( '_update.state' , ( ) => {
465482 return this . state ;
466483 } ) ;
You can’t perform that action at this time.
0 commit comments