Feature/extension manager (#689)

* getting the extension gallery from a static file and enabling the extension manager
This commit is contained in:
Leila Lali
2018-02-15 10:23:31 -08:00
committed by GitHub
parent 47b855adf8
commit dfc212369a
8 changed files with 66 additions and 16 deletions

View File

@@ -571,8 +571,12 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService {
if (!gallery) {
return TPromise.wrapError<void>(new Error('Missing gallery'));
}
return this.extensionService.installFromGallery(gallery);
if (ext.gallery.assets.downloadPage && ext.gallery.assets.downloadPage.uri) {
window.open(ext.gallery.assets.downloadPage.uri);
return TPromise.wrap<void>(void 0);
} else {
return this.extensionService.installFromGallery(gallery);
}
}
setEnablement(extension: IExtension, enablementState: EnablementState): TPromise<void> {