Skip to content

Commit 7ab986f

Browse files
committed
Move codeQL.chooseDatabaseGithub command
1 parent 15d30d5 commit 7ab986f

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export type LocalDatabasesCommands = {
6767
"codeQL.chooseDatabaseFolder": () => Promise<void>;
6868
"codeQL.chooseDatabaseArchive": () => Promise<void>;
6969
"codeQL.chooseDatabaseInternet": () => Promise<void>;
70+
"codeQL.chooseDatabaseGithub": () => Promise<void>;
7071
"codeQL.upgradeCurrentDatabase": () => Promise<void>;
7172
"codeQL.clearCache": () => Promise<void>;
7273

extensions/ql-vscode/src/extension.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,18 +1220,6 @@ async function activateWithInstalledDistribution(
12201220
),
12211221
);
12221222

1223-
ctx.subscriptions.push(
1224-
commandRunnerWithProgress(
1225-
"codeQL.chooseDatabaseGithub",
1226-
async (progress: ProgressCallback, token: CancellationToken) => {
1227-
await databaseUI.chooseDatabaseGithub(progress, token);
1228-
},
1229-
{
1230-
title: "Adding database from GitHub",
1231-
},
1232-
),
1233-
);
1234-
12351223
ctx.subscriptions.push(
12361224
commandRunner("codeQL.copyVersion", async () => {
12371225
const text = `CodeQL extension version: ${

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ export class DatabaseUI extends DisposableObject {
214214
this.handleChooseDatabaseArchiveFromPalette.bind(this),
215215
"codeQL.chooseDatabaseInternet":
216216
this.handleChooseDatabaseInternet.bind(this),
217+
"codeQL.chooseDatabaseGithub": this.handleChooseDatabaseGithub.bind(this),
217218
"codeQL.setCurrentDatabase": this.handleSetCurrentDatabase.bind(this),
218219
"codeQL.setDefaultTourDatabase":
219220
this.handleSetDefaultTourDatabase.bind(this),

0 commit comments

Comments
 (0)