From d6d4582f165407c6649949911b982c25e27b0ccf Mon Sep 17 00:00:00 2001 From: Matt Bierner <12821956+mjbvz@users.noreply.github.com> Date: Tue, 7 Apr 2026 09:37:38 -0700 Subject: [PATCH] Skip the builtinCG for extensions without a repo If an built-in extension does not have a repo, we assume that it's being maintained by another team --- build/lib/builtInExtensionsCG.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/lib/builtInExtensionsCG.ts b/build/lib/builtInExtensionsCG.ts index 1c4ce609c3da5..0737680fb72e1 100644 --- a/build/lib/builtInExtensionsCG.ts +++ b/build/lib/builtInExtensionsCG.ts @@ -21,10 +21,15 @@ const contentFileNames = ['package.json', 'package-lock.json']; async function downloadExtensionDetails(extension: IExtensionDefinition): Promise { const extensionLabel = `${extension.name}@${extension.version}`; + + if (!extension.repo) { + console.log(`Skipping CG for ${extensionLabel} because no repository is defined`); + return; + } + const repository = url.parse(extension.repo).path!.substr(1); const repositoryContentBaseUrl = `https://${token ? `${token}@` : ''}${contentBasePath}/${repository}/v${extension.version}`; - async function getContent(fileName: string): Promise<{ fileName: string; body: Buffer | undefined | null }> { try { const response = await fetch(`${repositoryContentBaseUrl}/${fileName}`);