mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Fix "No extension gallery service configured" error (#427)
The error occurred when trying to install an extension from the new _File > Install Extension from VSIX Package_ menu entry. Because there's no gallery URL configured at the moment, querying the gallery to retrieve package metadata is pointless, and skipping this step fixes the problem for now.
This commit is contained in:
committed by
Karl Burtram
parent
1cd4b39e9d
commit
a3948ac744
@@ -123,6 +123,14 @@ export class ExtensionManagementService implements IExtensionManagementService {
|
||||
|
||||
this._onInstallExtension.fire({ identifier, zipPath });
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
// Until there's a gallery for SQL Ops Studio, skip retrieving the metadata from the gallery
|
||||
return this.installExtension({ zipPath, id: identifier.id, metadata: null })
|
||||
.then(
|
||||
local => this._onDidInstallExtension.fire({ identifier, zipPath, local }),
|
||||
error => { this._onDidInstallExtension.fire({ identifier, zipPath, error }); return TPromise.wrapError(error); }
|
||||
);
|
||||
/*
|
||||
return this.galleryService.query({ names: [getGalleryExtensionId(manifest.publisher, manifest.name)], pageSize: 1 })
|
||||
.then(galleryResult => {
|
||||
const galleryExtension = galleryResult.firstPage[0];
|
||||
@@ -133,6 +141,7 @@ export class ExtensionManagementService implements IExtensionManagementService {
|
||||
error => { this._onDidInstallExtension.fire({ identifier, zipPath, error }); return TPromise.wrapError(error); }
|
||||
);
|
||||
});
|
||||
*/
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user