Skip to content

Commit 6b578c8

Browse files
Move loading query history to after registering commands
1 parent b641007 commit 6b578c8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/ql-vscode/src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,6 @@ async function activateWithInstalledDistribution(
525525
ctx.subscriptions.push(logScannerService);
526526
ctx.subscriptions.push(logScannerService.scanners.registerLogScannerProvider(new JoinOrderScannerProvider(() => joinOrderWarningThreshold())));
527527

528-
void logger.log('Reading query history');
529-
await qhm.readQueryHistory();
530-
531528
void logger.log('Initializing compare view.');
532529
const compareView = new CompareView(
533530
ctx,
@@ -1229,6 +1226,9 @@ async function activateWithInstalledDistribution(
12291226

12301227
await commands.executeCommand('codeQLDatabases.removeOrphanedDatabases');
12311228

1229+
void logger.log('Reading query history');
1230+
await qhm.readQueryHistory();
1231+
12321232
void logger.log('Successfully finished extension initialization.');
12331233

12341234
return {

0 commit comments

Comments
 (0)