Skip to content

Commit 068d461

Browse files
committed
Update progress bar for "install pack dependencies"
1 parent 8e20d01 commit 068d461

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

extensions/ql-vscode/src/packaging.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,19 @@ export async function handleInstallPackDependencies(
110110
canPickMany: true,
111111
ignoreFocusOut: true,
112112
});
113-
if (packsToInstall && packsToInstall.length > 0) {
114-
progress({
115-
message: 'Installing dependencies. This may take a few minutes.',
116-
step: 2,
117-
maxStep: 2,
118-
});
113+
const numberOfPacks = packsToInstall?.length || 0;
114+
if (packsToInstall && numberOfPacks > 0) {
119115
const failedPacks = [];
120116
const errors = [];
117+
// Start at 1 because we already have the first step
118+
let count = 1;
121119
for (const pack of packsToInstall) {
120+
count++;
121+
progress({
122+
message: `Installing dependencies for ${pack.label}`,
123+
step: count,
124+
maxStep: numberOfPacks + 1,
125+
});
122126
try {
123127
for (const dir of pack.packRootDir) {
124128
await cliServer.packInstall(dir);

0 commit comments

Comments
 (0)