提交 09ecb80c 编写于 作者: J Joao Moreno

always check whether extension is installed

fixes #6732
上级 870c700e
......@@ -59,9 +59,8 @@ class Main {
}
private installExtension(ids: string[]): TPromise<any> {
return this.extensionManagementService.getInstalled().then(installed => {
return sequence(ids.map(id => () => {
return sequence(ids.map(id => () => {
return this.extensionManagementService.getInstalled().then(installed => {
const isInstalled = installed.some(e => getExtensionId(e) === id);
if (isInstalled) {
......@@ -93,8 +92,8 @@ class Main {
console.log(localize('successInstall', "Extension '{0}' v{1} was successfully installed!", id, extension.version));
});
});
}));
});
});
}));
}
private uninstallExtension(ids: string[]): TPromise<any> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册