File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/databases Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,22 +45,17 @@ export async function promptAndDownloadGitHubDatabase(
4545) : Promise < void > {
4646 const languages = databases . map ( ( database ) => database . language ) ;
4747
48- const databasesMessage =
48+ const message =
4949 databases . length === 1
5050 ? `This repository has an origin (GitHub) that has a ${ getLanguageDisplayName (
5151 languages [ 0 ] ,
52- ) } CodeQL database.`
52+ ) } CodeQL database. Connect to GitHub and download the existing database? `
5353 : `This repository has an origin (GitHub) that has ${ joinLanguages (
5454 languages ,
55- ) } CodeQL databases.`;
56-
57- const connectMessage =
58- databases . length === 1
59- ? `Connect to GitHub and download the existing database?`
60- : `Connect to GitHub and download any existing databases?` ;
55+ ) } CodeQL databases. Connect to GitHub and download any existing databases?`;
6156
6257 const answer = await showNeverAskAgainDialog (
63- ` ${ databasesMessage } ${ connectMessage } ` ,
58+ message ,
6459 false ,
6560 "Connect" ,
6661 "Not now" ,
You can’t perform that action at this time.
0 commit comments