@@ -100,6 +100,8 @@ import { exportRemoteQueryResults } from './remote-queries/export-results';
100100import { RemoteQuery } from './remote-queries/remote-query' ;
101101import { EvalLogViewer } from './eval-log-viewer' ;
102102import { SummaryLanguageSupport } from './log-insights/summary-language-support' ;
103+ import { JoinOrderScannerProvider } from './log-insights/join-order' ;
104+ import { LogScannerService } from './log-insights/log-scanner-service' ;
103105
104106/**
105107 * extension.ts
@@ -483,6 +485,11 @@ async function activateWithInstalledDistribution(
483485
484486 ctx . subscriptions . push ( qhm ) ;
485487
488+ void logger . log ( 'Initializing evaluation log scanners.' ) ;
489+ const logScannerService = new LogScannerService ( qhm ) ;
490+ ctx . subscriptions . push ( logScannerService ) ;
491+ ctx . subscriptions . push ( logScannerService . scanners . registerLogScannerProvider ( new JoinOrderScannerProvider ( ) ) ) ;
492+
486493 void logger . log ( 'Reading query history' ) ;
487494 await qhm . readQueryHistory ( ) ;
488495
@@ -556,7 +563,7 @@ async function activateWithInstalledDistribution(
556563 undefined ,
557564 item ,
558565 ) ;
559- item . completeThisQuery ( completedQueryInfo ) ;
566+ qhm . completeQuery ( item , completedQueryInfo ) ;
560567 await showResultsForCompletedQuery ( item as CompletedLocalQueryInfo , WebviewReveal . NotForced ) ;
561568 // Note we must update the query history view after showing results as the
562569 // display and sorting might depend on the number of results
0 commit comments