Skip to content

Commit af63e50

Browse files
committed
Convert commandRunnerWithProgress invocations to withProgress
1 parent 42ce27b commit af63e50

2 files changed

Lines changed: 210 additions & 175 deletions

File tree

extensions/ql-vscode/src/extension.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ async function activateWithInstalledDistribution(
12701270
commandRunnerWithProgress(
12711271
"codeQL.chooseDatabaseFolder",
12721272
(progress: ProgressCallback, token: CancellationToken) =>
1273-
databaseUI.handleChooseDatabaseFolder(progress, token),
1273+
databaseUI.chooseDatabaseFolder(progress, token),
12741274
{
12751275
title: "Choose a Database from a Folder",
12761276
},
@@ -1280,7 +1280,7 @@ async function activateWithInstalledDistribution(
12801280
commandRunnerWithProgress(
12811281
"codeQL.chooseDatabaseArchive",
12821282
(progress: ProgressCallback, token: CancellationToken) =>
1283-
databaseUI.handleChooseDatabaseArchive(progress, token),
1283+
databaseUI.chooseDatabaseArchive(progress, token),
12841284
{
12851285
title: "Choose a Database from an Archive",
12861286
},
@@ -1291,11 +1291,7 @@ async function activateWithInstalledDistribution(
12911291
"codeQL.chooseDatabaseGithub",
12921292
async (progress: ProgressCallback, token: CancellationToken) => {
12931293
const credentials = isCanary() ? app.credentials : undefined;
1294-
await databaseUI.handleChooseDatabaseGithub(
1295-
credentials,
1296-
progress,
1297-
token,
1298-
);
1294+
await databaseUI.chooseDatabaseGithub(credentials, progress, token);
12991295
},
13001296
{
13011297
title: "Adding database from GitHub",
@@ -1306,7 +1302,7 @@ async function activateWithInstalledDistribution(
13061302
commandRunnerWithProgress(
13071303
"codeQL.chooseDatabaseInternet",
13081304
(progress: ProgressCallback, token: CancellationToken) =>
1309-
databaseUI.handleChooseDatabaseInternet(progress, token),
1305+
databaseUI.chooseDatabaseInternet(progress, token),
13101306

13111307
{
13121308
title: "Adding database from URL",

0 commit comments

Comments
 (0)