Skip to content

Commit 5c03f5b

Browse files
committed
Do not split up message
1 parent 9ca138d commit 5c03f5b

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

extensions/ql-vscode/src/databases/github-database-prompt.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)