Skip to content

Commit

Permalink
Update report stat script to account for new ms extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Jul 9, 2024
1 parent be7c26e commit 256b7d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/reportStat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 256b7d4

Please sign in to comment.