Extension install error copyediting
This commit is contained in:
parent
41464748ab
commit
ad95ccefbb
1 changed files with 2 additions and 2 deletions
|
@ -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))));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue