mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 01:25:36 -05:00
52 lines
2.3 KiB
TypeScript
52 lines
2.3 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
'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';
|
|
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
|
|
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
|
import { ReleaseNotesInput } from 'vs/workbench/parts/update/electron-browser/releaseNotesInput';
|
|
import { IWorkbenchContribution } from 'vs/workbench/common/contributions';
|
|
import { IStorageService, StorageScope } from 'vs/platform/storage/common/storage';
|
|
import URI from 'vs/base/common/uri';
|
|
import { IOpenerService } from 'vs/platform/opener/common/opener';
|
|
import { AbstractShowReleaseNotesAction, loadReleaseNotes } from 'vs/workbench/parts/update/electron-browser/update';
|
|
import { INotification, INotificationService, INotificationActions } from 'vs/platform/notification/common/notification';
|
|
import Severity from 'vs/base/common/severity';
|
|
|
|
export class OpenGettingStartedInBrowserAction extends Action {
|
|
|
|
constructor(
|
|
@IOpenerService private openerService: IOpenerService
|
|
) {
|
|
super('update.openGettingStartedGuide', nls.localize('gettingStarted', "Get Started"), null, true);
|
|
}
|
|
|
|
run(): TPromise<any> {
|
|
const uri = URI.parse(product.releaseNotesUrl);
|
|
return this.openerService.open(uri);
|
|
}
|
|
}
|
|
|
|
export class ShowCurrentReleaseNotesAction extends AbstractShowReleaseNotesAction {
|
|
|
|
static ID = 'update.showCurrentCarbonReleaseNotes';
|
|
static LABEL = nls.localize('showReleaseNotes', "Show Getting Started");
|
|
|
|
constructor(
|
|
id = ShowCurrentReleaseNotesAction.ID,
|
|
label = ShowCurrentReleaseNotesAction.LABEL,
|
|
@IWorkbenchEditorService editorService: IWorkbenchEditorService,
|
|
@IInstantiationService instantiationService: IInstantiationService
|
|
) {
|
|
super(id, label, pkg.version, editorService, instantiationService);
|
|
}
|
|
}
|