Move loading query history to after registering commands

This commit is contained in:
Robert
2022-10-31 14:54:45 +00:00
parent b6410073d4
commit 6b578c830d

View File

@@ -525,9 +525,6 @@ async function activateWithInstalledDistribution(
ctx.subscriptions.push(logScannerService);
ctx.subscriptions.push(logScannerService.scanners.registerLogScannerProvider(new JoinOrderScannerProvider(() => joinOrderWarningThreshold())));
void logger.log('Reading query history');
await qhm.readQueryHistory();
void logger.log('Initializing compare view.');
const compareView = new CompareView(
ctx,
@@ -1229,6 +1226,9 @@ async function activateWithInstalledDistribution(
await commands.executeCommand('codeQLDatabases.removeOrphanedDatabases');
void logger.log('Reading query history');
await qhm.readQueryHistory();
void logger.log('Successfully finished extension initialization.');
return {