提交 8d253903 编写于 作者: J Joao Moreno

install extension on url

上级 086b2875
...@@ -841,7 +841,14 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService { ...@@ -841,7 +841,14 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService {
} }
const extension = result.firstPage[0]; const extension = result.firstPage[0];
this.open(extension).done(null, error => this.onError(error)); const promises = [this.open(extension)];
if (this.local.every(local => local.identifier !== extension.identifier)) {
promises.push(this.install(extension));
}
TPromise.join(promises)
.done(null, error => this.onError(error));
}); });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册