Skip to content

Commit e981530

Browse files
committed
Import methods instead of whole databaseFetcher object
1 parent b00e2aa commit e981530

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { askForLanguage, isFolderAlreadyInWorkspace } from "./helpers";
88
import { getErrorMessage } from "./pure/helpers-pure";
99
import { QlPackGenerator } from "./qlpack-generator";
1010
import { DatabaseItem, DatabaseManager } from "./local-databases";
11-
import * as databaseFetcher from "./databaseFetcher";
1211
import { ProgressCallback, UserCancellationException } from "./progress";
12+
import { askForGitHubRepo, downloadGitHubDatabase } from "./databaseFetcher";
1313

1414
type QueryLanguagesToDatabaseMap = Record<string, string>;
1515

@@ -214,16 +214,13 @@ export class SkeletonQueryWizard {
214214
});
215215

216216
const githubRepoNwo = QUERY_LANGUAGE_TO_DATABASE_REPO[this.language];
217-
const chosenRepo = await databaseFetcher.askForGitHubRepo(
218-
undefined,
219-
githubRepoNwo,
220-
);
217+
const chosenRepo = await askForGitHubRepo(undefined, githubRepoNwo);
221218

222219
if (!chosenRepo) {
223220
throw new UserCancellationException("No GitHub repository provided");
224221
}
225222

226-
await databaseFetcher.downloadGitHubDatabase(
223+
await downloadGitHubDatabase(
227224
chosenRepo,
228225
this.databaseManager,
229226
this.databaseStoragePath,

0 commit comments

Comments
 (0)