From cd853bb58844f2a642dfb5ddd09582f77770ca6a Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Fri, 19 Feb 2016 16:21:59 +0100 Subject: [PATCH] fix version references --- .../parts/extensions/electron-browser/extensionsActions.ts | 6 +++--- src/vs/workbench/parts/extensions/node/extensionsService.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vs/workbench/parts/extensions/electron-browser/extensionsActions.ts b/src/vs/workbench/parts/extensions/electron-browser/extensionsActions.ts index 209cf18d39fc1..5586f48eb9b6f 100644 --- a/src/vs/workbench/parts/extensions/electron-browser/extensionsActions.ts +++ b/src/vs/workbench/parts/extensions/electron-browser/extensionsActions.ts @@ -134,7 +134,7 @@ export class InstallAction extends Action { this.messageService.show( Severity.Info, { - message: nls.localize('success-installed', "{0} {1} was successfully installed. Restart to enable it.", extension.displayName, extension.version), + message: nls.localize('success-installed', "'{0}' was successfully installed. Restart to enable it.", extension.displayName), actions: [this.instantiationService.createInstance(ReloadWindowAction, ReloadWindowAction.ID, nls.localize('restartNow', "Restart Now"))] } ); @@ -170,7 +170,7 @@ export class UninstallAction extends Action { } public run(extension: IExtension): TPromise { - if (!window.confirm(nls.localize('deleteSure', "Are you sure you want to uninstall the '{0}' extension?", extension.displayName))) { + if (!window.confirm(nls.localize('deleteSure', "Are you sure you want to uninstall '{0}'?", extension.displayName))) { return TPromise.as(null); } @@ -187,7 +187,7 @@ export class UninstallAction extends Action { this.messageService.show( Severity.Info, { - message: nls.localize('success-uninstalled', "{0} was successfully uninstalled. Restart to deactivate it.", extension.displayName), + message: nls.localize('success-uninstalled', "'{0}' was successfully uninstalled. Restart to deactivate it.", extension.displayName), actions: [this.instantiationService.createInstance(ReloadWindowAction, ReloadWindowAction.ID, nls.localize('restartNow2', "Restart Now"))] } ); diff --git a/src/vs/workbench/parts/extensions/node/extensionsService.ts b/src/vs/workbench/parts/extensions/node/extensionsService.ts index 6396c9165c335..c9e074bc0c420 100644 --- a/src/vs/workbench/parts/extensions/node/extensionsService.ts +++ b/src/vs/workbench/parts/extensions/node/extensionsService.ts @@ -80,7 +80,7 @@ function createExtension(manifest: IExtensionManifest, galleryInformation?: IGal } function getExtensionId(extension: IExtensionManifest, version = extension.version): string { - return `${ extension.publisher }.${ extension.name }-${ extension.version }`; + return `${ extension.publisher }.${ extension.name }-${ version }`; } export class ExtensionsService implements IExtensionsService {