mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
Merge VS Code 1.31.1 (#4283)
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
'use strict';
|
||||
|
||||
import nls = require('vs/nls');
|
||||
import { TPromise } from 'vs/base/common/winjs.base';
|
||||
import { Action } from 'vs/base/common/actions';
|
||||
import pkg from 'vs/platform/node/package';
|
||||
import product from 'vs/platform/node/product';
|
||||
@@ -14,6 +13,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
import { IOpenerService } from 'vs/platform/opener/common/opener';
|
||||
import { AbstractShowReleaseNotesAction } from 'vs/workbench/parts/update/electron-browser/update';
|
||||
import { MenuRegistry, MenuId } from 'vs/platform/actions/common/actions';
|
||||
|
||||
export class OpenGettingStartedInBrowserAction extends Action {
|
||||
|
||||
@@ -23,7 +23,7 @@ export class OpenGettingStartedInBrowserAction extends Action {
|
||||
super('update.openGettingStartedGuide', nls.localize('gettingStarted', "Get Started"), null, true);
|
||||
}
|
||||
|
||||
run(): TPromise<any> {
|
||||
run(): Promise<any> {
|
||||
const uri = URI.parse(product.gettingStartedUrl);
|
||||
return this.openerService.open(uri);
|
||||
}
|
||||
@@ -42,3 +42,12 @@ export class ShowCurrentReleaseNotesAction extends AbstractShowReleaseNotesActio
|
||||
super(id, label, pkg.version, instantiationService);
|
||||
}
|
||||
}
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
||||
group: '1_welcome',
|
||||
command: {
|
||||
id: ShowCurrentReleaseNotesAction.ID,
|
||||
title: nls.localize({ key: 'miGettingStarted', comment: ['&& denotes a mnemonic'] }, "Getting &&Started")
|
||||
},
|
||||
order: 1
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user