Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ export class WebviewEditor extends EditorPane {
if (this.webview && this._visible) {
this.setWebviewAnchorElement(this.webview);
}

this.setEditorVisible(dimension.width > 0 && dimension.height > 0);
Comment thread
mjbvz marked this conversation as resolved.
}

public override focus(): void {
Expand All @@ -123,6 +125,10 @@ export class WebviewEditor extends EditorPane {
}

protected override setEditorVisible(visible: boolean): void {
if (visible === this._visible) {
return;
}

this._visible = visible;
if (this.input instanceof WebviewInput && this.webview) {
if (visible) {
Expand Down
Loading