From 256b7d4d48bcea4e8d3bc7784e90d81a2e3f5b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Tron=C3=AD=C4=8Dek?= Date: Tue, 9 Jul 2024 09:26:43 +0000 Subject: [PATCH] Update report stat script to account for new ms extensions --- lib/reportStat.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/reportStat.js b/lib/reportStat.js index b0482e042..91ae87a3d 100644 --- a/lib/reportStat.js +++ b/lib/reportStat.js @@ -70,21 +70,26 @@ const cannotPublish = [ "ms-python.vscode-pylance", "ms-toolsai.vscode-ai-remote", "VisualStudioExptTeam.vscodeintellicode", + "ms-dotnettools.vscodeintellicode-csharp", "VisualStudioExptTeam.intellicode-api-usage-examples", "ms-vscode-remote.remote-wsl", "ms-vscode-remote.remote-containers", "ms-vscode-remote.remote-ssh", "ms-vscode-remote.remote-ssh-edit", "ms-vscode.remote-explorer", + "ms-vscode.remote-server", + "ms-vscode.remote-repositories", "ms-vscode-remote.vscode-remote-extensionpack", "MS-vsliveshare.vsliveshare", "MS-vsliveshare.vsliveshare-pack", "MS-vsliveshare.vsliveshare-audio", "ms-python.gather", + "ms-dotnettools.csdevkit", "ms-toolsai.vscode-ai", // GitHub Proprietary "GitHub.copilot", + "GitHub.copilot-chat", "GitHub.remotehub", "GitHub.codespaces", @@ -133,7 +138,7 @@ const checkMissing = async (silent = false, amount = checkAmount) => { openGalleryApi.getExtension(`${extension.publisher.publisherName}.${extension.extensionName}`, flags), ]); const id = `${extension.publisher.publisherName}.${extension.extensionName}`; - const extInstalls = extension.statistics?.find((s) => s.statisticName === "install")?.value; + const extInstalls = extension.statistics?.find((s) => s.statisticName === "install")?.value ?? 0; const popularExtension = extInstalls > 1_000_000; if (openExtension.status === "fulfilled") { if (!openExtension.value?.publisher.publisherId) {