@@ -701,7 +701,7 @@ async function activateWithInstalledDistribution(
701701 queryHistoryConfigurationListener ,
702702 labelProvider ,
703703 async ( from : CompletedLocalQueryInfo , to : CompletedLocalQueryInfo ) =>
704- showResultsForComparison ( from , to ) ,
704+ showResultsForComparison ( compareView , from , to ) ,
705705 ) ;
706706
707707 ctx . subscriptions . push ( qhm ) ;
@@ -729,21 +729,6 @@ async function activateWithInstalledDistribution(
729729 void extLogger . log ( "Initializing source archive filesystem provider." ) ;
730730 archiveFilesystemProvider_activate ( ctx ) ;
731731
732- async function showResultsForComparison (
733- from : CompletedLocalQueryInfo ,
734- to : CompletedLocalQueryInfo ,
735- ) : Promise < void > {
736- try {
737- await compareView . showResults ( from , to ) ;
738- } catch ( e ) {
739- void showAndLogExceptionWithTelemetry (
740- redactableError ( asError ( e ) ) `Failed to show results: ${ getErrorMessage (
741- e ,
742- ) } `,
743- ) ;
744- }
745- }
746-
747732 async function showResultsForCompletedQuery (
748733 query : CompletedLocalQueryInfo ,
749734 forceReveal : WebviewReveal ,
@@ -1729,6 +1714,22 @@ async function activateWithInstalledDistribution(
17291714 } ;
17301715}
17311716
1717+ async function showResultsForComparison (
1718+ compareView : CompareView ,
1719+ from : CompletedLocalQueryInfo ,
1720+ to : CompletedLocalQueryInfo ,
1721+ ) : Promise < void > {
1722+ try {
1723+ await compareView . showResults ( from , to ) ;
1724+ } catch ( e ) {
1725+ void showAndLogExceptionWithTelemetry (
1726+ redactableError ( asError ( e ) ) `Failed to show results: ${ getErrorMessage (
1727+ e ,
1728+ ) } `,
1729+ ) ;
1730+ }
1731+ }
1732+
17321733function addUnhandledRejectionListener ( ) {
17331734 const handler = ( error : unknown ) => {
17341735 // This listener will be triggered for errors from other extensions as
0 commit comments