mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-29 09:09:03 +01:00
switch update/release notes actions (#187740)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user