Fix errors installing extension from Welcome page (fixes #50753)

This commit is contained in:
Christof Marti 2018-05-30 17:08:24 +02:00
parent 93f10d7fbf
commit d33a1d808d
2 changed files with 2 additions and 2 deletions

View file

@ -246,7 +246,7 @@ export class ExtensionManagementService extends Disposable implements IExtension
return this.downloadAndInstallExtensions(extensionsToInstall, operataions)
.then(
locals => this.onDidInstallExtensions(extensionsToInstall, locals, operataions, [])
.then(() => locals.filter(l => areSameExtensions({ id: getGalleryExtensionIdFromLocal(l), uuid: l.identifier.uuid }, extension.identifier)[0])),
.then(() => locals.filter(l => areSameExtensions({ id: getGalleryExtensionIdFromLocal(l), uuid: l.identifier.uuid }, extension.identifier))[0]),
errors => this.onDidInstallExtensions(extensionsToInstall, [], operataions, errors));
},
error => this.onDidInstallExtensions([extension], [], [this.getOperation(extension.identifier, installed)], [error])));

View file

@ -117,7 +117,7 @@ const extensionPacks: ExtensionSuggestion[] = [
// { name: localize('welcomePage.go', "Go"), id: 'lukehoban.go' },
{ name: localize('welcomePage.php', "PHP"), id: 'felixfbecker.php-pack' },
{ name: localize('welcomePage.azure', "Azure"), title: localize('welcomePage.showAzureExtensions', "Show Azure extensions"), id: 'workbench.extensions.action.showAzureExtensions', isCommand: true },
{ name: localize('welcomePage.docker', "Docker"), id: 'PeterJausovec.vscode-docker' },
{ name: localize('welcomePage.docker', "Docker"), id: 'peterjausovec.vscode-docker' },
];
const keymapExtensions: ExtensionSuggestion[] = [