@@ -68,7 +68,7 @@ import {
6868} from './helpers' ;
6969import { asError , assertNever , getErrorMessage } from './pure/helpers-pure' ;
7070import { spawnIdeServer } from './ide-server' ;
71- import { InterfaceManager } from './interface' ;
71+ import { ResultsView } from './interface' ;
7272import { WebviewReveal } from './interface-utils' ;
7373import { ideServerLogger , logger , ProgressReporter , queryServerLogger } from './logging' ;
7474import { QueryHistoryManager } from './query-history' ;
@@ -77,7 +77,7 @@ import * as qsClient from './legacy-query-server/queryserver-client';
7777import { displayQuickQuery } from './quick-query' ;
7878import { QLTestAdapterFactory } from './test-adapter' ;
7979import { TestUIService } from './test-ui' ;
80- import { CompareInterfaceManager } from './compare/compare-interface ' ;
80+ import { CompareView } from './compare/compare-view ' ;
8181import { gatherQlFiles } from './pure/files' ;
8282import { initializeTelemetry } from './telemetry' ;
8383import {
@@ -104,6 +104,7 @@ import { LogScannerService } from './log-insights/log-scanner-service';
104104import { createInitialQueryInfo } from './run-queries-shared' ;
105105import { LegacyQueryRunner } from './legacy-query-server/legacyRunner' ;
106106import { QueryRunner } from './queryRunner' ;
107+ import { VariantAnalysisView } from './remote-queries/variant-analysis-view' ;
107108
108109/**
109110 * extension.ts
@@ -448,8 +449,8 @@ async function activateWithInstalledDistribution(
448449 const labelProvider = new HistoryItemLabelProvider ( queryHistoryConfigurationListener ) ;
449450
450451 void logger . log ( 'Initializing results panel interface.' ) ;
451- const intm = new InterfaceManager ( ctx , dbm , cliServer , queryServerLogger , labelProvider ) ;
452- ctx . subscriptions . push ( intm ) ;
452+ const localQueryResultsView = new ResultsView ( ctx , dbm , cliServer , queryServerLogger , labelProvider ) ;
453+ ctx . subscriptions . push ( localQueryResultsView ) ;
453454
454455 void logger . log ( 'Initializing variant analysis manager.' ) ;
455456 const rqm = new RemoteQueriesManager ( ctx , cliServer , queryStorageDir , logger ) ;
@@ -459,7 +460,7 @@ async function activateWithInstalledDistribution(
459460 const qhm = new QueryHistoryManager (
460461 qs ,
461462 dbm ,
462- intm ,
463+ localQueryResultsView ,
463464 rqm ,
464465 evalLogViewer ,
465466 queryStorageDir ,
@@ -481,16 +482,16 @@ async function activateWithInstalledDistribution(
481482 void logger . log ( 'Reading query history' ) ;
482483 await qhm . readQueryHistory ( ) ;
483484
484- void logger . log ( 'Initializing compare panel interface .' ) ;
485- const cmpm = new CompareInterfaceManager (
485+ void logger . log ( 'Initializing compare view .' ) ;
486+ const compareView = new CompareView (
486487 ctx ,
487488 dbm ,
488489 cliServer ,
489490 queryServerLogger ,
490491 labelProvider ,
491492 showResults
492493 ) ;
493- ctx . subscriptions . push ( cmpm ) ;
494+ ctx . subscriptions . push ( compareView ) ;
494495
495496 void logger . log ( 'Initializing source archive filesystem provider.' ) ;
496497 archiveFilesystemProvider . activate ( ctx ) ;
@@ -500,7 +501,7 @@ async function activateWithInstalledDistribution(
500501 to : CompletedLocalQueryInfo
501502 ) : Promise < void > {
502503 try {
503- await cmpm . showResults ( from , to ) ;
504+ await compareView . showResults ( from , to ) ;
504505 } catch ( e ) {
505506 void showAndLogErrorMessage ( getErrorMessage ( e ) ) ;
506507 }
@@ -510,7 +511,7 @@ async function activateWithInstalledDistribution(
510511 query : CompletedLocalQueryInfo ,
511512 forceReveal : WebviewReveal
512513 ) : Promise < void > {
513- await intm . showResults ( query , forceReveal , false ) ;
514+ await localQueryResultsView . showResults ( query , forceReveal , false ) ;
514515 }
515516
516517 async function compileAndRunQuery (
@@ -906,6 +907,13 @@ async function activateWithInstalledDistribution(
906907 } )
907908 ) ;
908909
910+ ctx . subscriptions . push (
911+ commandRunner ( 'codeQL.mockVariantAnalysisView' , async ( ) => {
912+ const variantAnalysisView = new VariantAnalysisView ( ctx ) ;
913+ variantAnalysisView . openView ( ) ;
914+ } )
915+ ) ;
916+
909917 ctx . subscriptions . push (
910918 commandRunner (
911919 'codeQL.openReferencedFile' ,
0 commit comments