Fix link for Getting Started command (#16863)

* Fix link for Getting Started command

* Fix comment
This commit is contained in:
Karl Burtram
2021-08-24 09:58:32 -07:00
committed by GitHub
parent c00fc80f22
commit 1e0b0bb21a
3 changed files with 12 additions and 24 deletions

View File

@@ -4,10 +4,10 @@
*--------------------------------------------------------------------------------------------*/
import { IWorkbenchActionRegistry, Extensions as ActionExtensions } from 'vs/workbench/common/actions';
import { ShowCurrentReleaseNotesAction } from 'sql/workbench/update/electron-browser/releaseNotes';
import { ShowGettingStartedAction } from 'sql/workbench/update/electron-browser/gettingStarted';
import { SyncActionDescriptor } from 'vs/platform/actions/common/actions';
import { Registry } from 'vs/platform/registry/common/platform';
// add product update and release notes contributions
// add getting started contributions
Registry.as<IWorkbenchActionRegistry>(ActionExtensions.WorkbenchActions)
.registerWorkbenchAction(SyncActionDescriptor.create(ShowCurrentReleaseNotesAction, ShowCurrentReleaseNotesAction.ID, ShowCurrentReleaseNotesAction.LABEL), 'Show Getting Started');
.registerWorkbenchAction(SyncActionDescriptor.create(ShowGettingStartedAction, ShowGettingStartedAction.ID, ShowGettingStartedAction.LABEL), 'Show Getting Started');

View File

@@ -6,18 +6,20 @@
import nls = require('vs/nls');
import { Action } from 'vs/base/common/actions';
import product from 'vs/platform/product/common/product';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { URI } from 'vs/base/common/uri';
import { IOpenerService } from 'vs/platform/opener/common/opener';
import { MenuRegistry, MenuId } from 'vs/platform/actions/common/actions';
import { AbstractShowReleaseNotesAction } from 'vs/workbench/contrib/update/browser/update';
export class OpenGettingStartedInBrowserAction extends Action {
export class ShowGettingStartedAction extends Action {
static ID = 'update.showGettingStarted';
static LABEL = nls.localize('showReleaseNotes', "Show Getting Started");
constructor(
id = ShowGettingStartedAction.ID,
label = ShowGettingStartedAction.LABEL,
@IOpenerService private openerService: IOpenerService
) {
super('update.openGettingStartedGuide', nls.localize('gettingStarted', "Get Started"), undefined, true);
super(id, label, undefined, true);
}
override run(): Promise<any> {
@@ -26,24 +28,10 @@ export class OpenGettingStartedInBrowserAction extends Action {
}
}
export class ShowCurrentReleaseNotesAction extends AbstractShowReleaseNotesAction {
static ID = 'update.showGettingStarted';
static LABEL = nls.localize('showReleaseNotes', "Show Getting Started");
constructor(
id = ShowCurrentReleaseNotesAction.ID,
label = ShowCurrentReleaseNotesAction.LABEL,
@IInstantiationService instantiationService: IInstantiationService
) {
super(id, label, product.version, instantiationService);
}
}
MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
group: '1_welcome',
command: {
id: ShowCurrentReleaseNotesAction.ID,
id: ShowGettingStartedAction.ID,
title: nls.localize({ key: 'miGettingStarted', comment: ['&& denotes a mnemonic'] }, "Getting &&Started")
},
order: 1

View File

@@ -165,8 +165,8 @@ import 'vs/workbench/contrib/cli/node/cli.contribution';
//#endregion
// {{SQL CARBON EDIT}}
// release notes
import 'sql/workbench/update/electron-browser/releaseNotes.contribution';
// getting started
import 'sql/workbench/update/electron-browser/gettingStarted.contribution';
// query history
import 'sql/workbench/contrib/queryHistory/electron-browser/queryHistory.contribution';