Skip to content

Commit feca898

Browse files
committed
Merge remote-tracking branch 'origin/main' into koesie10/download-github-database-authentication
2 parents 5d42cbc + 422f0eb commit feca898

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { asError, getErrorMessage } from "../common/helpers-pure";
77
import {
88
askForGitHubDatabaseDownload,
99
CodeqlDatabase,
10-
findGitHubDatabasesForRepository,
1110
downloadDatabaseFromGitHub,
11+
findGitHubDatabasesForRepository,
1212
} from "./github-database-prompt";
1313
import { GitHubDatabaseConfig, GitHubDatabaseConfigListener } from "../config";
1414
import { DatabaseManager } from "./local-databases";

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,17 @@ export async function askForGitHubDatabaseDownload(
3939
): Promise<boolean> {
4040
const languages = databases.map((database) => database.language);
4141

42-
const databasesMessage =
42+
const message =
4343
databases.length === 1
4444
? `This repository has an origin (GitHub) that has a ${getLanguageDisplayName(
4545
languages[0],
46-
)} CodeQL database.`
46+
)} CodeQL database. Download the existing database from GitHub?`
4747
: `This repository has an origin (GitHub) that has ${joinLanguages(
4848
languages,
49-
)} CodeQL databases.`;
50-
51-
const connectMessage =
52-
databases.length === 1
53-
? `Download the existing database from GitHub?`
54-
: `Download any existing databases from GitHub?`;
49+
)} CodeQL databases. Download any existing databases from GitHub?`;
5550

5651
const answer = await showNeverAskAgainDialog(
57-
`${databasesMessage} ${connectMessage}`,
52+
message,
5853
false,
5954
"Download",
6055
"Not now",

0 commit comments

Comments
 (0)