[PR #9924] [MERGED] Fix TabManagement to use tab object rather than index #27808

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9924
Author: @Don-Vito
Created: 4/22/2021
Status: Merged
Merged: 4/23/2021
Merged by: @undefined

Base: mainHead: 8374-work-with-tabs


📝 Commits (1)

  • 8647696 Fix TabManagement to use tab object rather than index

📊 Changes

3 files changed (+58 additions, -61 deletions)

View changed files

📝 src/cascadia/LocalTests_TerminalApp/TabTests.cpp (+5 -5)
📝 src/cascadia/TerminalApp/TabManagement.cpp (+50 -53)
📝 src/cascadia/TerminalApp/TerminalPage.h (+3 -3)

📄 Description

PR Checklist

Detailed Description of the Pull Request / Additional comments

The majority of the work was already done earlier.
The fix is only in _SetFocusedTab, that runs asynchronously
and thus might result in a race or even overflow.
All other changes are decorative.

Validation Steps Performed

UT and manual tests


🔄 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/9924 **Author:** [@Don-Vito](https://github.com/Don-Vito) **Created:** 4/22/2021 **Status:** ✅ Merged **Merged:** 4/23/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `8374-work-with-tabs` --- ### 📝 Commits (1) - [`8647696`](https://github.com/microsoft/terminal/commit/8647696685fea4cfc76af2358c12ce0b804934de) Fix TabManagement to use tab object rather than index ### 📊 Changes **3 files changed** (+58 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/LocalTests_TerminalApp/TabTests.cpp` (+5 -5) 📝 `src/cascadia/TerminalApp/TabManagement.cpp` (+50 -53) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+3 -3) </details> ### 📄 Description ## PR Checklist * [x] Closes https://github.com/microsoft/terminal/issues/8374 * [x] CLA signed. * [x] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [ ] I've discussed this with core contributors already. ## Detailed Description of the Pull Request / Additional comments The majority of the work was already done earlier. The fix is only in _SetFocusedTab, that runs asynchronously and thus might result in a race or even overflow. All other changes are decorative. ## Validation Steps Performed UT and manual tests --- <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:22 +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#27808