Skip to content

Commit 4fd6a62

Browse files
committed
💄
1 parent 3ccaf06 commit 4fd6a62

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -939,17 +939,11 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService {
939939
const extensionId = match[1];
940940

941941
this.queryLocal().then(local => {
942-
const foundExtension = local.filter(local => local.id === extensionId);
942+
const extension = local.filter(local => local.id === extensionId)[0];
943943

944-
if (foundExtension.length > 0) {
945-
const extension = foundExtension[0];
946-
947-
return this.windowService.show().then(() => {
948-
return this.open(extension).then(() => {
949-
const message = nls.localize('extensionExist', "Extension {0} has already been installed", extension.displayName);
950-
this.messageService.show(Severity.Info, message);
951-
});
952-
});
944+
if (extension) {
945+
return this.windowService.show()
946+
.then(() => this.open(extension));
953947
}
954948

955949
return this.queryGallery({ names: [extensionId], source: 'uri' }).then(result => {

0 commit comments

Comments
 (0)