Skip to content

Commit

Permalink
Defer re-showing Find widget when restoring hidden webview (may fix m…
Browse files Browse the repository at this point in the history
  • Loading branch information
gjsjohnmurray committed Sep 25, 2024
1 parent ec60ccb commit 1cfe11b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/webview/browser/overlayWebview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,14 @@ export class OverlayWebview extends Disposable implements IOverlayWebview {
this._firstLoadPendingMessages.clear();
}

this._container?.setVisibility('visible');

// https://github.com/microsoft/vscode/issues/157424
if (this.options.retainContextWhenHidden && this._shouldShowFindWidgetOnRestore) {
this.showFind(false);
// Reset
this._shouldShowFindWidgetOnRestore = false;
}

this._container?.setVisibility('visible');
}

public setHtml(html: string) {
Expand Down

0 comments on commit 1cfe11b

Please sign in to comment.