diff --git a/packages/vscode-extension/src/extension.ts b/packages/vscode-extension/src/extension.ts index d47f767fd..e04af4c24 100644 --- a/packages/vscode-extension/src/extension.ts +++ b/packages/vscode-extension/src/extension.ts @@ -76,7 +76,8 @@ export async function activate(context: ExtensionContext) { context.subscriptions.push( window.registerWebviewViewProvider( SidePanelViewProvider.viewType, - new SidePanelViewProvider(context) + new SidePanelViewProvider(context), + { webviewOptions: { retainContextWhenHidden: true } } ) ); context.subscriptions.push(commands.registerCommand("RNIDE.openPanel", showIDEPanel));