Skip to content

Commit 389d8f0

Browse files
committed
Don't show progress when choosing repo
1 parent 919219c commit 389d8f0

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

extensions/ql-vscode/src/databaseFetcher.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,15 @@ export async function promptImportGithubDatabase(
119119
}
120120

121121
export async function askForGitHubRepo(
122-
progress: ProgressCallback,
122+
progress?: ProgressCallback,
123123
suggestedValue?: string,
124124
): Promise<string | undefined> {
125-
progress({
126-
message: "Choose repository",
127-
step: 1,
128-
maxStep: 2,
129-
});
125+
progress &&
126+
progress({
127+
message: "Choose repository",
128+
step: 1,
129+
maxStep: 2,
130+
});
130131

131132
const options: InputBoxOptions = {
132133
title:

extensions/ql-vscode/src/skeleton-query-wizard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class SkeletonQueryWizard {
208208

209209
const githubRepoNwo = QUERY_LANGUAGE_TO_DATABASE_REPO[this.language];
210210
const chosenRepo = await databaseFetcher.askForGitHubRepo(
211-
this.progress,
211+
undefined,
212212
githubRepoNwo,
213213
);
214214

0 commit comments

Comments
 (0)