[PR #17552] Revert lazy loading Quick Fix UI #31266

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

Original Pull Request: https://github.com/microsoft/terminal/pull/17552

State: closed
Merged: Yes


Turns out, when the branding disables the feature, we try to get QuickFixMenu when it's not loaded, causing a crash here.

Since we end up loading the quick fix menu when we scroll or apply UI settings, we're actually loading the quick fix menu pretty early on. So might as well remove the x:Load="False". If we feel strongly about keeping the lazy loading functionality, we can do that later (and probably apply the same heuristic to the other XAML we're registering in TerminalApp).

This also adds a feature flag check when registering the menu in TerminalApp.

Closes #17548

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17552 **State:** closed **Merged:** Yes --- Turns out, when the branding disables the feature, we try to get `QuickFixMenu` when it's not loaded, causing a crash [here](https://github.com/microsoft/terminal/blob/dabc70ee21247fa8fa0bde976b456b124fb4b82a/src/cascadia/TerminalApp/TerminalPage.cpp#L1763-L1769). Since we end up loading the quick fix menu when we scroll or apply UI settings, we're actually loading the quick fix menu pretty early on. So might as well remove the `x:Load="False"`. If we feel strongly about keeping the lazy loading functionality, we can do that later (and probably apply the same heuristic to the other XAML we're registering in TerminalApp). This also adds a feature flag check when registering the menu in TerminalApp. Closes #17548
claunia added the pull-request label 2026-01-31 09:46:10 +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#31266