Configures port mapping for webviews so that remote development is supported.
Enabled retainContextWhenHidden to get faster performance.
This commit is contained in:
@@ -32,7 +32,16 @@ export class WebViews {
|
||||
debugVisualizer,
|
||||
"Debug Visualizer",
|
||||
ViewColumn.Two,
|
||||
{ enableScripts: true }
|
||||
{
|
||||
enableScripts: true,
|
||||
retainContextWhenHidden: true,
|
||||
portMapping: [
|
||||
{
|
||||
webviewPort: this.server.port,
|
||||
extensionHostPort: this.server.port,
|
||||
},
|
||||
],
|
||||
}
|
||||
);
|
||||
|
||||
this.setupView(panel, expression);
|
||||
|
||||
Reference in New Issue
Block a user