Move codeQL.chooseDatabaseGithub command

This commit is contained in:
Koen Vlaswinkel
2023-03-21 14:48:14 +01:00
parent 15d30d5342
commit 7ab986fabe
3 changed files with 2 additions and 12 deletions

View File

@@ -67,6 +67,7 @@ export type LocalDatabasesCommands = {
"codeQL.chooseDatabaseFolder": () => Promise<void>;
"codeQL.chooseDatabaseArchive": () => Promise<void>;
"codeQL.chooseDatabaseInternet": () => Promise<void>;
"codeQL.chooseDatabaseGithub": () => Promise<void>;
"codeQL.upgradeCurrentDatabase": () => Promise<void>;
"codeQL.clearCache": () => Promise<void>;

View File

@@ -1220,18 +1220,6 @@ async function activateWithInstalledDistribution(
),
);
ctx.subscriptions.push(
commandRunnerWithProgress(
"codeQL.chooseDatabaseGithub",
async (progress: ProgressCallback, token: CancellationToken) => {
await databaseUI.chooseDatabaseGithub(progress, token);
},
{
title: "Adding database from GitHub",
},
),
);
ctx.subscriptions.push(
commandRunner("codeQL.copyVersion", async () => {
const text = `CodeQL extension version: ${

View File

@@ -214,6 +214,7 @@ export class DatabaseUI extends DisposableObject {
this.handleChooseDatabaseArchiveFromPalette.bind(this),
"codeQL.chooseDatabaseInternet":
this.handleChooseDatabaseInternet.bind(this),
"codeQL.chooseDatabaseGithub": this.handleChooseDatabaseGithub.bind(this),
"codeQL.setCurrentDatabase": this.handleSetCurrentDatabase.bind(this),
"codeQL.setDefaultTourDatabase":
this.handleSetDefaultTourDatabase.bind(this),