switch update/release notes actions (#187740)

This commit is contained in:
João Moreno
2023-07-12 21:15:48 +02:00
committed by GitHub
parent cbb47129d3
commit 9bca8bebfc
@@ -451,16 +451,6 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu
when: CONTEXT_UPDATE_STATE.isEqualTo(StateType.Updating)
});
CommandsRegistry.registerCommand('update.restart', () => this.updateService.quitAndInstall());
MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
group: '7_update',
command: {
id: 'update.restart',
title: nls.localize('restartToUpdate', "Restart to Update (1)")
},
when: CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)
});
CommandsRegistry.registerCommand('update.showUpdateReleaseNotes', () => {
if (this.updateService.state.type !== StateType.Ready) {
return;
@@ -478,6 +468,16 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu
when: CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)
});
CommandsRegistry.registerCommand('update.restart', () => this.updateService.quitAndInstall());
MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
group: '7_update',
command: {
id: 'update.restart',
title: nls.localize('restartToUpdate', "Restart to Update (1)")
},
when: CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)
});
CommandsRegistry.registerCommand('_update.state', () => {
return this.state;
});