[PR #9194] [MERGED] wpf: prevent a 0 size when VS builds the Terminal window too early #27450

Open
opened 2026-01-31 09:22:03 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9194
Author: @javierdlg
Created: 2/17/2021
Status: Merged
Merged: 2/17/2021
Merged by: @undefined

Base: mainHead: dev/jadelaga/rendersizeFix


📝 Commits (1)

  • bc6cb15 Added logic to prevent a (0,0) resize

📊 Changes

2 files changed (+11 additions, -4 deletions)

View changed files

📝 src/cascadia/WpfTerminalControl/TerminalContainer.cs (+6 -4)
📝 src/cascadia/WpfTerminalControl/TerminalControl.xaml.cs (+5 -0)

📄 Description

The terminal WPF container might have a (0,0) render size when VS
eagerly attempts to initialize the terminal tool window when it is
pinned during startup, but no actual UI is shown due to the VS welcome
dialog that shows up before VS can build the terminal tool window.

We've fixed this issue previously in other areas but only recently did
we get a complete enough dump to find the corner cases for this issue.

This should patch all the gaps that cause this bug.

Validation Steps Performed

I've manually validated the scenarios shown in the user dumps.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/9194 **Author:** [@javierdlg](https://github.com/javierdlg) **Created:** 2/17/2021 **Status:** ✅ Merged **Merged:** 2/17/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/jadelaga/rendersizeFix` --- ### 📝 Commits (1) - [`bc6cb15`](https://github.com/microsoft/terminal/commit/bc6cb15364078f15a37f16e6a7b6056e5a6c56b5) Added logic to prevent a (0,0) resize ### 📊 Changes **2 files changed** (+11 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WpfTerminalControl/TerminalContainer.cs` (+6 -4) 📝 `src/cascadia/WpfTerminalControl/TerminalControl.xaml.cs` (+5 -0) </details> ### 📄 Description The terminal WPF container might have a (0,0) render size when VS eagerly attempts to initialize the terminal tool window when it is pinned during startup, but no actual UI is shown due to the VS welcome dialog that shows up before VS can build the terminal tool window. We've fixed this issue previously in other areas but only recently did we get a complete enough dump to find the corner cases for this issue. This should patch all the gaps that cause this bug. ## Validation Steps Performed I've manually validated the scenarios shown in the user dumps. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:22:03 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27450