From d534f88fad43410f07b8ed651726f31d4d55649d Mon Sep 17 00:00:00 2001 From: shati-patel <42641846+shati-patel@users.noreply.github.com> Date: Wed, 19 Jan 2022 20:57:12 +0000 Subject: [PATCH] Update progress bar for "install pack dependencies" --- extensions/ql-vscode/src/packaging.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/extensions/ql-vscode/src/packaging.ts b/extensions/ql-vscode/src/packaging.ts index 68f7f30879e..201f0a86015 100644 --- a/extensions/ql-vscode/src/packaging.ts +++ b/extensions/ql-vscode/src/packaging.ts @@ -110,15 +110,19 @@ export async function handleInstallPackDependencies( canPickMany: true, ignoreFocusOut: true, }); - if (packsToInstall && packsToInstall.length > 0) { - progress({ - message: 'Installing dependencies. This may take a few minutes.', - step: 2, - maxStep: 2, - }); + const numberOfPacks = packsToInstall?.length || 0; + if (packsToInstall && numberOfPacks > 0) { const failedPacks = []; const errors = []; + // Start at 1 because we already have the first step + let count = 1; for (const pack of packsToInstall) { + count++; + progress({ + message: `Installing dependencies for ${pack.label}`, + step: count, + maxStep: numberOfPacks + 1, + }); try { for (const dir of pack.packRootDir) { await cliServer.packInstall(dir);