Skip to content

Conversation

CGNonofr
Copy link
Contributor

Because the empty message div is hidden AFTER the actual webview is layout, the first webview layout occurs while it's placed outside of the workbench (at the bottom on the empty message div).

So another layout is required to place it correctly, leading to a flicker

fix #270776

Copy link

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/workbench/browser/parts/paneCompositePart.ts

}

protected override showComposite(composite: Composite): void {
this.layoutEmptyMessage(false);
Copy link
Contributor Author

@CGNonofr CGNonofr Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter is mandatory, because at that point, this.getActiveComposite() still returns null (for overlay webviews at least)

CGNonofr pushed a commit to CodinGame/monaco-vscode-api that referenced this pull request Oct 10, 2025
CGNonofr pushed a commit to CodinGame/monaco-vscode-api that referenced this pull request Oct 10, 2025
Copy link
Collaborator

@mjbvz mjbvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mjbvz mjbvz enabled auto-merge October 10, 2025 16:02
@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flicker when opening a panel
2 participants