@@ -6,9 +6,10 @@ import {
66} from "./helpers" ;
77import { ExtensionContext , QuickPickItem , window } from "vscode" ;
88import {
9- commandRunnerWithProgress ,
9+ commandRunner ,
1010 ProgressCallback ,
1111 UserCancellationException ,
12+ withProgress ,
1213} from "./commandRunner" ;
1314import { extLogger } from "./common" ;
1415import { 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