Skip to content

Commit 15d30d5

Browse files
committed
Move codeQL.chooseDatabaseInternet command
1 parent 71f22b9 commit 15d30d5

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

extensions/ql-vscode/src/common/commands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export type LocalDatabasesCommands = {
6666
// Command palette commands
6767
"codeQL.chooseDatabaseFolder": () => Promise<void>;
6868
"codeQL.chooseDatabaseArchive": () => Promise<void>;
69+
"codeQL.chooseDatabaseInternet": () => Promise<void>;
6970
"codeQL.upgradeCurrentDatabase": () => Promise<void>;
7071
"codeQL.clearCache": () => Promise<void>;
7172

extensions/ql-vscode/src/extension.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,17 +1231,6 @@ async function activateWithInstalledDistribution(
12311231
},
12321232
),
12331233
);
1234-
ctx.subscriptions.push(
1235-
commandRunnerWithProgress(
1236-
"codeQL.chooseDatabaseInternet",
1237-
(progress: ProgressCallback, token: CancellationToken) =>
1238-
databaseUI.chooseDatabaseInternet(progress, token),
1239-
1240-
{
1241-
title: "Adding database from URL",
1242-
},
1243-
),
1244-
);
12451234

12461235
ctx.subscriptions.push(
12471236
commandRunner("codeQL.copyVersion", async () => {

extensions/ql-vscode/src/local-databases-ui.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ export class DatabaseUI extends DisposableObject {
212212
this.handleChooseDatabaseFolderFromPalette.bind(this),
213213
"codeQL.chooseDatabaseArchive":
214214
this.handleChooseDatabaseArchiveFromPalette.bind(this),
215+
"codeQL.chooseDatabaseInternet":
216+
this.handleChooseDatabaseInternet.bind(this),
215217
"codeQL.setCurrentDatabase": this.handleSetCurrentDatabase.bind(this),
216218
"codeQL.setDefaultTourDatabase":
217219
this.handleSetDefaultTourDatabase.bind(this),

0 commit comments

Comments
 (0)