提交 3ccaf068 编写于 作者: J Joao Moreno

Merge branch 'ext-tab-40848' of https://github.com/nexes/vscode into nexes-ext-tab-40848

......@@ -939,8 +939,17 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService {
const extensionId = match[1];
this.queryLocal().then(local => {
if (local.some(local => local.id === extensionId)) {
return TPromise.as(null);
const foundExtension = local.filter(local => local.id === extensionId);
if (foundExtension.length > 0) {
const extension = foundExtension[0];
return this.windowService.show().then(() => {
return this.open(extension).then(() => {
const message = nls.localize('extensionExist', "Extension {0} has already been installed", extension.displayName);
this.messageService.show(Severity.Info, message);
});
});
}
return this.queryGallery({ names: [extensionId], source: 'uri' }).then(result => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册