Merge pull request #1687 from github/robertbrignull/load_query_history_later

Move loading query history to after registering commands
This commit is contained in:
Robert
2022-11-01 13:56:41 +00:00
committed by GitHub

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 {