contain gallery code inside GalleryService

related to #10180
This commit is contained in:
Joao Moreno
2016-08-16 16:23:20 +02:00
parent 416fe53a13
commit c8caac361f
8 changed files with 189 additions and 196 deletions

View File

@@ -113,9 +113,8 @@ class Main {
console.log(localize('foundExtension', "Found '{0}' in the marketplace.", id));
console.log(localize('installing', "Installing..."));
return this.extensionManagementService.install(extension).then(() => {
console.log(localize('successInstall', "Extension '{0}' v{1} was successfully installed!", id, extension.versions[0].version));
});
return this.extensionManagementService.installFromGallery(extension)
.then(() => console.log(localize('successInstall', "Extension '{0}' v{1} was successfully installed!", id, extension.version)));
});
});
});