@@ -23,7 +23,7 @@ class ReactWebView {
2323
2424// Listen for when the panel is disposed
2525// This happens when the user closes the panel or when the panel is closed programatically
26- // this.panel.onDidDispose(() => this.dispose(), null, this.disposables)
26+ this . panel . onDidDispose ( ( ) => this . dispose ( ) , null , this . disposables )
2727
2828// Handle messages from the webview
2929const onReceive = ( action :string | CR . Action ) => vscode . commands . executeCommand ( 'coderoad.receive_action' , action )
@@ -38,15 +38,6 @@ class ReactWebView {
3838this . panel . reveal ( vscode . ViewColumn . Two )
3939}
4040
41- this . panel . onDidDispose ( ( ) => {
42- updateWindows ( )
43- } )
44-
45- // this.panel.onDidChangeViewState(() => {
46- // console.log('onDidChangeViewState')
47- // updateWindows()
48- // })
49-
5041// prevents new panels from going ontop of coderoad panel
5142vscode . window . onDidChangeActiveTextEditor ( param => {
5243if ( ! param || param . viewColumn !== vscode . ViewColumn . Two ) {
@@ -145,8 +136,8 @@ class ReactWebView {
145136 <link rel="stylesheet" type="text/css" href="${ styleUri } ">
146137 <meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src vscode-resource: https:; script-src 'nonce-${ n1 } ' 'nonce-${ n2 } ' 'nonce-${ n3 } '; style-src vscode-resource: 'unsafe-inline' http: https: data:;">
147138 <base href="${ vscode . Uri . file ( path . join ( this . extensionPath , 'build' ) ) . with ( {
148- scheme :'vscode-resource' ,
149- } ) } /">
139+ scheme :'vscode-resource' ,
140+ } ) } /">
150141 <style></style>
151142 </head>
152143