Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions patches/common/add-openvsx-verification-check.diff
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ Index: code-editor-src/src/vs/platform/extensionManagement/common/extensionGalle
===================================================================
--- code-editor-src.orig/src/vs/platform/extensionManagement/common/extensionGalleryService.ts
+++ code-editor-src/src/vs/platform/extensionManagement/common/extensionGalleryService.ts
@@ -680,6 +680,7 @@ export abstract class AbstractExtensionG
@@ -622,6 +622,7 @@ export abstract class AbstractExtensionG
result.push(...extensions);
}

+ await this.enrichOpenVsxVerificationStatus(result);
return result;
}

@@ -694,6 +695,27 @@ export abstract class AbstractExtensionG
@@ -656,6 +657,27 @@ export abstract class AbstractExtensionG
return undefined;
}

Expand All @@ -37,7 +37,7 @@ Index: code-editor-src/src/vs/platform/extensionManagement/common/extensionGalle
+ const verificationMap = new Map<string, boolean>();
+ await Promise.all(namespaces.map(async (namespace) => {
+ try {
+ const response = await this.requestService.request({ type: 'GET', url: `https://open-vsx.org/api/${namespace}`, callSite: 'extensionGalleryService.enrichOpenVsxVerificationStatus' }, CancellationToken.None);
+ const response = await this.requestService.request({ type: 'GET', url: `https://open-vsx.org/api/${namespace}` }, CancellationToken.None);
+ const data = await asJson<{ verified?: boolean }>(response);
+ verificationMap.set(namespace, !!data?.verified);
+ } catch {
Expand All @@ -53,8 +53,8 @@ Index: code-editor-src/src/vs/platform/extensionManagement/common/extensionGalle
private async getExtensionsUsingQueryApi(extensionInfos: ReadonlyArray<IExtensionInfo>, options: IExtensionQueryOptions, extensionGalleryManifest: IExtensionGalleryManifest, token: CancellationToken): Promise<IGalleryExtension[]> {
const names: string[] = [],
ids: string[] = [],
@@ -1186,11 +1208,13 @@ export abstract class AbstractExtensionG
return { extensions: result, total };
@@ -1052,11 +1074,13 @@ export abstract class AbstractExtensionG
return { extensions, total };
};
const { extensions, total } = await runQuery(query, token);
+ await this.enrichOpenVsxVerificationStatus(extensions);
Expand Down
Loading