mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
fixed extension filter and search (#1301)
* fixed extension filter and search
This commit is contained in:
@@ -37,6 +37,8 @@ export interface IExtension {
|
||||
description: string;
|
||||
url: string;
|
||||
downloadUrl: string;
|
||||
// {{SQL CARBON EDIT}}
|
||||
downloadPage: string;
|
||||
repository: string;
|
||||
iconUrl: string;
|
||||
iconUrlFallback: string;
|
||||
|
||||
@@ -127,6 +127,16 @@ class Extension implements IExtension {
|
||||
//return `${product.extensionsGallery.serviceUrl}/publishers/${this.publisher}/vsextensions/${this.name}/${this.latestVersion}/vspackage`;
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
get downloadPage(): string {
|
||||
if (!product.extensionsGallery) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
return this.gallery && this.gallery.assets && this.gallery.assets.downloadPage && this.gallery.assets.downloadPage.uri;
|
||||
}
|
||||
|
||||
get iconUrl(): string {
|
||||
return this.galleryIconUrl || this.localIconUrl || this.defaultIconUrl;
|
||||
}
|
||||
@@ -570,7 +580,8 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService {
|
||||
return TPromise.as(null);
|
||||
}
|
||||
|
||||
const toUpdate = this.local.filter(e => e.outdated && (e.state !== ExtensionState.Installing));
|
||||
// {{SQL CARBON EDIT}}
|
||||
const toUpdate = this.local.filter(e => e.outdated && (e.state !== ExtensionState.Installing) && !e.downloadPage);
|
||||
return TPromise.join(toUpdate.map(e => this.install(e)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user