File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed
Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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: ${
Original file line number Diff line number Diff 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 ) ,
You can’t perform that action at this time.
0 commit comments