@@ -18,8 +18,17 @@ export class VisualizationPanel {
1818 private _trace : FrontendTrace ;
1919 private _traceIndex : number ;
2020 private _tracePortSelfClose : boolean ;
21+ private _outChannel : vscode . OutputChannel ;
2122
22- private constructor ( context : vscode . ExtensionContext , filePath : string , fileHash : string , trace : BackendTrace , tracePort : MessagePort | null ) {
23+ private constructor (
24+ context : vscode . ExtensionContext ,
25+ outChannel : vscode . OutputChannel ,
26+ filePath : string ,
27+ fileHash : string ,
28+ trace : BackendTrace ,
29+ tracePort : MessagePort | null
30+ ) {
31+ this . _outChannel = outChannel ;
2332 this . _fileHash = fileHash ;
2433 this . _tracePort = tracePort ;
2534 this . _backendTrace = { trace : trace , complete : trace . length > 0 } ;
@@ -74,8 +83,8 @@ export class VisualizationPanel {
7483 if ( this . _panel ?. active ) {
7584 this . updateLineHighlight ( ) ;
7685 }
77- } , undefined , context . subscriptions ) ;
78-
86+ } , undefined , context . subscriptions ) ;
87+
7988
8089 // Message Receivers
8190 this . _panel . webview . onDidReceiveMessage (
@@ -118,12 +127,13 @@ export class VisualizationPanel {
118127
119128 public static async getVisualizationPanel (
120129 context : vscode . ExtensionContext ,
130+ outChannel : vscode . OutputChannel ,
121131 filePath : string ,
122132 fileHash : string ,
123133 trace : BackendTrace ,
124134 tracePort : MessagePort | null
125135 ) : Promise < VisualizationPanel | undefined > {
126- return new VisualizationPanel ( context , filePath , fileHash , trace , tracePort ) ;
136+ return new VisualizationPanel ( context , outChannel , filePath , fileHash , trace , tracePort ) ;
127137 }
128138
129139 // TODO: Look if Typescript is possible OR do better documentation in all files
0 commit comments