console.log(localize('updateMessage',"Updating the Extension '{0}' to the version {1}",id,extension.version));
returnthis.installFromGallery(id,extension);
}else{
constupdateMessage=localize('updateConfirmationMessage',"Extension '{0}' v{1} is already installed, but a newer version {2} is available in the marketplace. Would you like to update?",id,installedExtension.manifest.version,extension.version);
console.log(localize('forceUpdate',"Extension '{0}' v{1} is already installed, but a newer version {2} is available in the marketplace. Use '--force' option to update to newer version.",id,installedExtension.manifest.version,extension.version));
returnPromise.resolve(null);
}
}else{
console.log(localize('alreadyInstalled',"Extension '{0}' is already installed.",version?`${id}@${version}`:id));
console.log(localize('forceDowngrade',"A newer version of this extension '{0}' v{1} is already installed. Use '--force' option to downgrade to older version.",newer.galleryIdentifier.id,newer.manifest.version,manifest.version));
constmessage=nls.localize('installingOutdatedExtension',"A newer version of this extension is already installed. Would you like to override this with the older version?");