[PR #9859] [MERGED] Add Close menu items to the context menu flyout #27789

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9859
Author: @mpela81
Created: 4/16/2021
Status: Merged
Merged: 4/21/2021
Merged by: @undefined

Base: mainHead: feat/close_items


📝 Commits (1)

  • ae6f20b Add Close menu items to the context menu flyout

📊 Changes

4 files changed (+30 additions, -46 deletions)

View changed files

📝 src/cascadia/TerminalApp/TabBase.cpp (+28 -26)
📝 src/cascadia/TerminalApp/TabBase.h (+1 -1)
📝 src/cascadia/TerminalApp/TerminalTab.cpp (+1 -17)
📝 src/cascadia/TerminalApp/TerminalTab.h (+0 -2)

📄 Description

Summary of the Pull Request

Add the "Close other tabs"/"Close tabs to the right" menu items straight to the tab context menu to work around #8238.
We can't add them into a dedicated sub-menu until the upstream crash is fixed.

References

#8238

PR Checklist

Detailed Description of the Pull Request / Additional comments

Moved the creation of the close menu items to a single function. Once the originating crash is fixed, the sub-menu can be restored by just replacing a few lines of code.

Validation Steps Performed

immagine


🔄 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/9859 **Author:** [@mpela81](https://github.com/mpela81) **Created:** 4/16/2021 **Status:** ✅ Merged **Merged:** 4/21/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `feat/close_items` --- ### 📝 Commits (1) - [`ae6f20b`](https://github.com/microsoft/terminal/commit/ae6f20b33cde8a171c236ff619270e88182b68bc) Add Close menu items to the context menu flyout ### 📊 Changes **4 files changed** (+30 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/TabBase.cpp` (+28 -26) 📝 `src/cascadia/TerminalApp/TabBase.h` (+1 -1) 📝 `src/cascadia/TerminalApp/TerminalTab.cpp` (+1 -17) 📝 `src/cascadia/TerminalApp/TerminalTab.h` (+0 -2) </details> ### 📄 Description ## Summary of the Pull Request Add the "Close other tabs"/"Close tabs to the right" menu items straight to the tab context menu to work around #8238. We can't add them into a dedicated sub-menu until the upstream crash is fixed. ## References #8238 ## PR Checklist * [X] Closes #8238 * [X] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated * [ ] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. ## Detailed Description of the Pull Request / Additional comments Moved the creation of the close menu items to a single function. Once the originating crash is fixed, the sub-menu can be restored by just replacing a few lines of code. ## Validation Steps Performed ![immagine](https://user-images.githubusercontent.com/1140981/115059601-0dbc2480-9ee7-11eb-9889-d9ef8e6e7613.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:24:15 +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#27789