Skip to content

Commit dfff7ae

Browse files
committed
Move packaging commands to withProgress
1 parent ef267f8 commit dfff7ae

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

extensions/ql-vscode/src/packaging.ts

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import {
66
} from "./helpers";
77
import { ExtensionContext, QuickPickItem, window } from "vscode";
88
import {
9-
commandRunnerWithProgress,
9+
commandRunner,
1010
ProgressCallback,
1111
UserCancellationException,
12+
withProgress,
1213
} from "./commandRunner";
1314
import { extLogger } from "./common";
1415
import { asError, getErrorStack } from "./pure/helpers-pure";
@@ -24,24 +25,26 @@ export function registerPackagingCommands(
2425
{ cliServer }: PackagingOptions,
2526
) {
2627
ctx.subscriptions.push(
27-
commandRunnerWithProgress(
28-
"codeQL.installPackDependencies",
29-
async (progress: ProgressCallback) =>
30-
await handleInstallPackDependencies(cliServer, progress),
31-
{
32-
title: "Installing pack dependencies",
33-
},
28+
commandRunner("codeQL.installPackDependencies", async () =>
29+
withProgress(
30+
async (progress: ProgressCallback) =>
31+
await handleInstallPackDependencies(cliServer, progress),
32+
{
33+
title: "Installing pack dependencies",
34+
},
35+
),
3436
),
3537
);
3638

3739
ctx.subscriptions.push(
38-
commandRunnerWithProgress(
39-
"codeQL.downloadPacks",
40-
async (progress: ProgressCallback) =>
41-
await handleDownloadPacks(cliServer, progress),
42-
{
43-
title: "Downloading packs",
44-
},
40+
commandRunner("codeQL.downloadPacks", async () =>
41+
withProgress(
42+
async (progress: ProgressCallback) =>
43+
await handleDownloadPacks(cliServer, progress),
44+
{
45+
title: "Downloading packs",
46+
},
47+
),
4548
),
4649
);
4750
}

0 commit comments

Comments
 (0)