From 67b05548a0e4516d45a3798ebf39629d6fe356c0 Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Mon, 23 Jul 2018 22:52:33 -0700 Subject: [PATCH] Since release notes action fallsback to browser, changlog doesnt need to do the same --- .../extensions/node/extensionsWorkbenchService.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts b/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts index b3228031c0189..e9dcd4920d77c 100644 --- a/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts +++ b/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts @@ -56,8 +56,7 @@ class Extension implements IExtension { private stateProvider: IExtensionStateProvider, public locals: ILocalExtension[], public gallery: IGalleryExtension, - private telemetryService: ITelemetryService, - private configurationService: IConfigurationService + private telemetryService: ITelemetryService ) { } get type(): LocalExtensionType { @@ -278,8 +277,7 @@ ${this.description} if (!changelogUrl) { if (this.type === LocalExtensionType.System) { - const href = this.configurationService.getValue(offlineModeSetting) === true ? 'https://code.visualstudio.com/updates' : 'command:update.showCurrentReleaseNotes'; - return TPromise.as(`Please check the [VS Code Release Notes](${href}) for changes to the built-in extensions.`); + return TPromise.as('Please check the [VS Code Release Notes](command:update.showCurrentReleaseNotes) for changes to the built-in extensions.'); } return TPromise.wrapError(new Error('not available')); @@ -441,7 +439,7 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService, const locals = groupById[getGalleryExtensionIdFromLocal(local)]; locals.splice(locals.indexOf(local), 1); locals.splice(0, 0, local); - const extension = installedById[local.identifier.id] || new Extension(this.galleryService, this.stateProvider, locals, null, this.telemetryService, this.configurationService); + const extension = installedById[local.identifier.id] || new Extension(this.galleryService, this.stateProvider, locals, null, this.telemetryService); extension.locals = locals; extension.enablementState = this.extensionEnablementService.getEnablementState(local); const recommendation = allRecommendations.filter(r => areSameExtensions({ id: r.extensionId }, { id: extension.id }))[0]; @@ -564,7 +562,7 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService, this.syncLocalWithGalleryExtension(result, gallery); } } else { - result = new Extension(this.galleryService, this.stateProvider, [], gallery, this.telemetryService, this.configurationService); + result = new Extension(this.galleryService, this.stateProvider, [], gallery, this.telemetryService); } if (maliciousExtensionSet.has(result.id)) { @@ -897,7 +895,7 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService, let extension = this.installed.filter(e => areSameExtensions(e, gallery.identifier))[0]; if (!extension) { - extension = new Extension(this.galleryService, this.stateProvider, [], gallery, this.telemetryService, this.configurationService); + extension = new Extension(this.galleryService, this.stateProvider, [], gallery, this.telemetryService); } extension.gallery = gallery; @@ -910,7 +908,7 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService, private onDidInstallExtension(event: DidInstallExtensionEvent): void { const { local, zipPath, error, gallery } = event; const installingExtension = gallery ? this.installing.filter(e => areSameExtensions(e, gallery.identifier))[0] : null; - const extension: Extension = installingExtension ? installingExtension : zipPath ? new Extension(this.galleryService, this.stateProvider, [local], null, this.telemetryService, this.configurationService) : null; + const extension: Extension = installingExtension ? installingExtension : zipPath ? new Extension(this.galleryService, this.stateProvider, [local], null, this.telemetryService) : null; if (extension) { this.installing = installingExtension ? this.installing.filter(e => e !== installingExtension) : this.installing; if (!error) {