[PR #19353] Move newTabMenu creation to Settings Fixups #31811

Closed
opened 2026-01-31 09:49:42 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


Some of the other settings fixups require there to be a valid NewTabMenu, rather than just a temporary object. Since the resolving all the menu entries after loading already forces the user to have a newTabMenu, let's just codify it as a real fixup.

I've moved the SSH folder fixup after the settings fixup because it relies on there being a NTM.

I decided not to make this fixup write back to the user's settings. There are a couple reasons for this, all of which are flimsy.

  • There are a number of tests that test fixup behavior, especially those around actions, which would need to be updated for this new mandatory key. I did not think it proper to add newTabMenu to ten unrelated tests that only contain actions (for example.)
  • We actually don't currently have mandatory keys. But this one was always being added anyway, in a later phase...
  • It's consistent with the existing behavior.

Closes #19356

**Original Pull Request:** https://github.com/microsoft/terminal/pull/19353 **State:** closed **Merged:** Yes --- Some of the other settings fixups require there to be a valid NewTabMenu, rather than just a temporary object. Since the resolving all the menu entries after loading already forces the user to have a `newTabMenu`, let's just codify it as a real fixup. I've moved the SSH folder fixup after the settings fixup because it relies on there being a NTM. I decided not to make this fixup write back to the user's settings. There are a couple reasons for this, all of which are flimsy. - There are a number of tests that test fixup behavior, especially those around actions, which would need to be updated for this new mandatory key. I did not think it proper to add `newTabMenu` to ten unrelated tests that only contain actions (for example.) - We actually don't currently have mandatory keys. But this one was always being added anyway, in a later phase... - It's consistent with the existing behavior. Closes #19356
claunia added the pull-request label 2026-01-31 09:49:42 +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#31811