[PR #11143] [MERGED] Add the ability to quit all terminal instances #28438

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11143
Author: @Rosefield
Created: 9/4/2021
Status: Merged
Merged: 9/9/2021
Merged by: @undefined

Base: mainHead: feature/gh11081-add-quit-action


📝 Commits (6)

  • bd4a3b5 Add the ability to quit all terminal instances
  • aa74d9f add to schema
  • 79c092d Make sure the tests build too.
  • 5072358 tabs vs spaces teh endless debate. Maybe the editorconfig can include resw files.
  • d66a05c Fix unfinished comment, add tracking number for todo.
  • cecf5af Merge remote-tracking branch 'origin/main' into feature/gh11081-add-quit-action

📊 Changes

25 files changed (+227 additions, -6 deletions)

View changed files

📝 doc/cascadia/profiles.schema.json (+1 -0)
📝 src/cascadia/Remoting/Monarch.cpp (+30 -0)
📝 src/cascadia/Remoting/Monarch.h (+4 -0)
📝 src/cascadia/Remoting/Monarch.idl (+1 -0)
📝 src/cascadia/Remoting/Peasant.cpp (+32 -0)
📝 src/cascadia/Remoting/Peasant.h (+4 -0)
📝 src/cascadia/Remoting/Peasant.idl (+4 -0)
📝 src/cascadia/Remoting/WindowManager.cpp (+14 -0)
📝 src/cascadia/Remoting/WindowManager.h (+2 -0)
📝 src/cascadia/Remoting/WindowManager.idl (+2 -0)
📝 src/cascadia/TerminalApp/AppActionHandlers.cpp (+8 -1)
📝 src/cascadia/TerminalApp/AppLogic.cpp (+9 -1)
📝 src/cascadia/TerminalApp/AppLogic.h (+3 -0)
📝 src/cascadia/TerminalApp/AppLogic.idl (+3 -0)
📝 src/cascadia/TerminalApp/Resources/en-US/Resources.resw (+12 -0)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+41 -2)
📝 src/cascadia/TerminalApp/TerminalPage.h (+4 -1)
📝 src/cascadia/TerminalApp/TerminalPage.xaml (+5 -0)
📝 src/cascadia/TerminalSettingsModel/ActionAndArgs.cpp (+2 -0)
📝 src/cascadia/TerminalSettingsModel/AllShortcutActions.h (+2 -1)

...and 5 more files

📄 Description

Add the ability to quit all terminal instances. Doing this separately from the window layout saving ones to lessen the number of 1k+ line monsters I make y'all review.

References

#11083

PR Checklist

Detailed Description of the Pull Request / Additional comments

  • Warn the user before they do so to give a chance to cancel
  • Percolate a QuitAll event up to the monarch who then directs each peasant to clsoe.
  • Leave a window-layout-saving-sized hole to add that feature on top

Validation Steps Performed

  • quit with one window (from the monarch)
  • quit from the monarch with multiple windows
  • quit from a peasant
  • cancel the quit dialog

image


🔄 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/11143 **Author:** [@Rosefield](https://github.com/Rosefield) **Created:** 9/4/2021 **Status:** ✅ Merged **Merged:** 9/9/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `feature/gh11081-add-quit-action` --- ### 📝 Commits (6) - [`bd4a3b5`](https://github.com/microsoft/terminal/commit/bd4a3b56b34344a1a2542cb4430f32ff6eeb9abf) Add the ability to quit all terminal instances - [`aa74d9f`](https://github.com/microsoft/terminal/commit/aa74d9f2d55a73bb88138ce27326973307022f37) add to schema - [`79c092d`](https://github.com/microsoft/terminal/commit/79c092d0cd334d4eb2706216c8c1991834123d55) Make sure the tests build too. - [`5072358`](https://github.com/microsoft/terminal/commit/507235877dbda773b8f80789429f78afd5cf2c9f) tabs vs spaces teh endless debate. Maybe the editorconfig can include resw files. - [`d66a05c`](https://github.com/microsoft/terminal/commit/d66a05c24ff8eac5bc603926b6e58b18d293459f) Fix unfinished comment, add tracking number for todo. - [`cecf5af`](https://github.com/microsoft/terminal/commit/cecf5afebaaa7e38f52366e56740371a4aae7569) Merge remote-tracking branch 'origin/main' into feature/gh11081-add-quit-action ### 📊 Changes **25 files changed** (+227 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `doc/cascadia/profiles.schema.json` (+1 -0) 📝 `src/cascadia/Remoting/Monarch.cpp` (+30 -0) 📝 `src/cascadia/Remoting/Monarch.h` (+4 -0) 📝 `src/cascadia/Remoting/Monarch.idl` (+1 -0) 📝 `src/cascadia/Remoting/Peasant.cpp` (+32 -0) 📝 `src/cascadia/Remoting/Peasant.h` (+4 -0) 📝 `src/cascadia/Remoting/Peasant.idl` (+4 -0) 📝 `src/cascadia/Remoting/WindowManager.cpp` (+14 -0) 📝 `src/cascadia/Remoting/WindowManager.h` (+2 -0) 📝 `src/cascadia/Remoting/WindowManager.idl` (+2 -0) 📝 `src/cascadia/TerminalApp/AppActionHandlers.cpp` (+8 -1) 📝 `src/cascadia/TerminalApp/AppLogic.cpp` (+9 -1) 📝 `src/cascadia/TerminalApp/AppLogic.h` (+3 -0) 📝 `src/cascadia/TerminalApp/AppLogic.idl` (+3 -0) 📝 `src/cascadia/TerminalApp/Resources/en-US/Resources.resw` (+12 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+41 -2) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+4 -1) 📝 `src/cascadia/TerminalApp/TerminalPage.xaml` (+5 -0) 📝 `src/cascadia/TerminalSettingsModel/ActionAndArgs.cpp` (+2 -0) 📝 `src/cascadia/TerminalSettingsModel/AllShortcutActions.h` (+2 -1) _...and 5 more files_ </details> ### 📄 Description Add the ability to quit all terminal instances. Doing this separately from the window layout saving ones to lessen the number of 1k+ line monsters I make y'all review. ## References #11083 ## PR Checklist * [x] Closes #11081 * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [x] Schema updated. ## Detailed Description of the Pull Request / Additional comments - Warn the user before they do so to give a chance to cancel - Percolate a QuitAll event up to the monarch who then directs each peasant to clsoe. - Leave a window-layout-saving-sized hole to add that feature on top ## Validation Steps Performed - quit with one window (from the monarch) - quit from the monarch with multiple windows - quit from a peasant - cancel the quit dialog ![image](https://user-images.githubusercontent.com/6185249/132105775-3310f614-ce55-4454-9718-ef5c0d39fbd2.png) --- <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:28:31 +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#28438