Extension install error copyediting

This commit is contained in:
Rob Lourens 2018-11-02 12:14:44 -07:00
parent 41464748ab
commit ad95ccefbb

View file

@ -207,7 +207,7 @@ export class ExtensionManagementService extends Disposable implements IExtension
.then(manifest => {
const identifier = { id: getLocalExtensionIdFromManifest(manifest) };
if (manifest.engines && manifest.engines.vscode && !isEngineValid(manifest.engines.vscode)) {
return Promise.reject(new Error(nls.localize('incompatible', "Unable to install Extension '{0}' as it is not compatible with Code '{1}'.", identifier.id, pkg.version)));
return Promise.reject(new Error(nls.localize('incompatible', "Unable to install extension '{0}' as it is not compatible with VS Code '{1}'.", identifier.id, pkg.version)));
}
return this.removeIfExists(identifier.id)
.then(
@ -229,7 +229,7 @@ export class ExtensionManagementService extends Disposable implements IExtension
}
return null;
}),
e => Promise.reject(new Error(nls.localize('restartCode', "Please restart Code before reinstalling {0}.", manifest.displayName || manifest.name))));
e => Promise.reject(new Error(nls.localize('restartCode', "Please restart VS Code before reinstalling {0}.", manifest.displayName || manifest.name))));
});
});
});