@@ -35,7 +35,6 @@ import { CodeQLCliServer } from "./cli";
3535import {
3636 CliConfigListener ,
3737 DistributionConfigListener ,
38- isCanary ,
3938 joinOrderWarningThreshold ,
4039 MAX_QUERIES ,
4140 QueryHistoryConfigListener ,
@@ -639,7 +638,6 @@ async function activateWithInstalledDistribution(
639638 getContextStoragePath ( ctx ) ,
640639 ctx . extensionPath ,
641640 ) ;
642- databaseUI . init ( ) ;
643641 ctx . subscriptions . push ( databaseUI ) ;
644642
645643 void extLogger . log ( "Initializing evaluator log viewer." ) ;
@@ -1093,6 +1091,7 @@ async function activateWithInstalledDistribution(
10931091 ...getCommands ( ) ,
10941092 ...qhm . getCommands ( ) ,
10951093 ...variantAnalysisManager . getCommands ( ) ,
1094+ ...databaseUI . getCommands ( ) ,
10961095 ...dbModule . getCommands ( ) ,
10971096 } ;
10981097
@@ -1225,7 +1224,7 @@ async function activateWithInstalledDistribution(
12251224 commandRunnerWithProgress (
12261225 "codeQL.chooseDatabaseFolder" ,
12271226 ( progress : ProgressCallback , token : CancellationToken ) =>
1228- databaseUI . handleChooseDatabaseFolder ( progress , token ) ,
1227+ databaseUI . chooseDatabaseFolder ( progress , token ) ,
12291228 {
12301229 title : "Choose a Database from a Folder" ,
12311230 } ,
@@ -1235,7 +1234,7 @@ async function activateWithInstalledDistribution(
12351234 commandRunnerWithProgress (
12361235 "codeQL.chooseDatabaseArchive" ,
12371236 ( progress : ProgressCallback , token : CancellationToken ) =>
1238- databaseUI . handleChooseDatabaseArchive ( progress , token ) ,
1237+ databaseUI . chooseDatabaseArchive ( progress , token ) ,
12391238 {
12401239 title : "Choose a Database from an Archive" ,
12411240 } ,
@@ -1245,12 +1244,7 @@ async function activateWithInstalledDistribution(
12451244 commandRunnerWithProgress (
12461245 "codeQL.chooseDatabaseGithub" ,
12471246 async ( progress : ProgressCallback , token : CancellationToken ) => {
1248- const credentials = isCanary ( ) ? app . credentials : undefined ;
1249- await databaseUI . handleChooseDatabaseGithub (
1250- credentials ,
1251- progress ,
1252- token ,
1253- ) ;
1247+ await databaseUI . chooseDatabaseGithub ( progress , token ) ;
12541248 } ,
12551249 {
12561250 title : "Adding database from GitHub" ,
@@ -1261,7 +1255,7 @@ async function activateWithInstalledDistribution(
12611255 commandRunnerWithProgress (
12621256 "codeQL.chooseDatabaseInternet" ,
12631257 ( progress : ProgressCallback , token : CancellationToken ) =>
1264- databaseUI . handleChooseDatabaseInternet ( progress , token ) ,
1258+ databaseUI . chooseDatabaseInternet ( progress , token ) ,
12651259
12661260 {
12671261 title : "Adding database from URL" ,
0 commit comments