mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
Fixes simple browser webview is not reused if restored (#163389)
Fixes #163387
This commit is contained in:
@@ -34,7 +34,9 @@ export class SimpleBrowserManager {
|
||||
const url = state?.url ?? '';
|
||||
const view = SimpleBrowserView.restore(this.extensionUri, url, panel);
|
||||
this.registerWebviewListeners(view);
|
||||
return;
|
||||
if (!this._activeView) {
|
||||
this._activeView = view;
|
||||
}
|
||||
}
|
||||
|
||||
private registerWebviewListeners(view: SimpleBrowserView) {
|
||||
@@ -46,4 +48,3 @@ export class SimpleBrowserManager {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user