[PR #11029] [MERGED] Move commandline->title promotion into TerminalSettings #28357

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11029
Author: @DHowett
Created: 8/24/2021
Status: Merged
Merged: 8/25/2021
Merged by: @undefined

Base: mainHead: dev/duhowett/try-promotion-again


📝 Commits (1)

  • 7cdbf9c Move commandline->title promotion into TerminalSettings

📊 Changes

3 files changed (+98 additions, -7 deletions)

View changed files

📝 src/cascadia/LocalTests_SettingsModel/TerminalSettingsTests.cpp (+83 -0)
📝 src/cascadia/TerminalApp/AppCommandlineArgs.cpp (+0 -7)
📝 src/cascadia/TerminalSettingsModel/TerminalSettings.cpp (+15 -0)

📄 Description

It was insufficient to only promote commandline components to titles
during commandline parsing, because we also have a whole complement of
actions that contain NewTerminalArgs. The tests caught me out a little
too late (sorry!). I decided it was better move promotion down to
TerminalSettings.

Fixes #6776
Re-implements #10998


🔄 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/11029 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 8/24/2021 **Status:** ✅ Merged **Merged:** 8/25/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/duhowett/try-promotion-again` --- ### 📝 Commits (1) - [`7cdbf9c`](https://github.com/microsoft/terminal/commit/7cdbf9c18a13d77621359130922ad7b5a11f234d) Move commandline->title promotion into TerminalSettings ### 📊 Changes **3 files changed** (+98 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/LocalTests_SettingsModel/TerminalSettingsTests.cpp` (+83 -0) 📝 `src/cascadia/TerminalApp/AppCommandlineArgs.cpp` (+0 -7) 📝 `src/cascadia/TerminalSettingsModel/TerminalSettings.cpp` (+15 -0) </details> ### 📄 Description It was insufficient to only promote commandline components to titles during commandline parsing, because we also have a whole complement of actions that contain NewTerminalArgs. The tests caught me out a little too late (sorry!). I decided it was better move promotion down to TerminalSettings. Fixes #6776 Re-implements #10998 --- <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:27:59 +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#28357