Skip to content

Fix duplication issue for unfocused tabs - #13964

Merged
Dustin L. Howett (DHowett) merged 2 commits into
microsoft:mainfrom
JerBast:13942
Oct 11, 2022
Merged

Dustin L. Howett (DHowett) merged 2 commits into
microsoft:mainfrom
JerBast:13942

Conversation

@JerBast

Copy link
Copy Markdown
Contributor

Instead of using the currently focused tab when an unfocused tab is duplicated, the _MakePane(...) function now uses an optional source tab argument that points to the correct tab being duplicated.

Validation Steps Performed

Manually tested on multiple tabs with different profiles. Performed steps:

  • Construct at least two tabs with different profiles.
  • Select Duplicate Tab option from the dropdown menu of the unfocused tab.
  • Verify that the new tab has the same profile as the tab it was duplicated from.

Closes #13942

@ghost ghost added Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-2 A description (P2) Product-Terminal The new Windows Terminal. labels Sep 11, 2022
@JerBast Jeroen (JerBast) changed the title 13942 Fix duplication issue for unfocused tabs Sep 11, 2022

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and easy to read! Thanks!

@lhecker Leonard Hecker (lhecker) added the AutoMerge Marked for automatic merge by the bot when requirements are met label Oct 10, 2022
@ghost

Copy link
Copy Markdown

Hello Leonard Hecker (@lhecker)!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

@DHowett
Dustin L. Howett (DHowett) merged commit 8f08bb0 into microsoft:main Oct 11, 2022
Dustin L. Howett (DHowett) pushed a commit that referenced this pull request Oct 12, 2022
Instead of using the currently focused tab when an unfocused tab is duplicated, the `_MakePane(...)` function now uses an optional source tab argument that points to the correct tab being duplicated.

## Validation Steps Performed

Manually tested on multiple tabs with different profiles. Performed steps:

* Construct at least two tabs with different profiles.
* Select `Duplicate Tab` option from the dropdown menu of the unfocused tab.
* Verify that the new tab has the same profile as the tab it was duplicated from.

Closes #13942

(cherry picked from commit 8f08bb0)
Service-Card-Id: 86159036
Service-Version: 1.15
Dustin L. Howett (DHowett) pushed a commit that referenced this pull request Oct 13, 2022
Instead of using the currently focused tab when an unfocused tab is duplicated, the `_MakePane(...)` function now uses an optional source tab argument that points to the correct tab being duplicated.

## Validation Steps Performed

Manually tested on multiple tabs with different profiles. Performed steps:

* Construct at least two tabs with different profiles.
* Select `Duplicate Tab` option from the dropdown menu of the unfocused tab.
* Verify that the new tab has the same profile as the tab it was duplicated from.

Closes #13942

(cherry picked from commit 8f08bb0)
Service-Card-Id: 86159037
Service-Version: 1.16
@ghost

Copy link
Copy Markdown

🎉Windows Terminal v1.15.2874 has been released which incorporates this pull request.:tada:

Handy links:

@ghost

Copy link
Copy Markdown

🎉Windows Terminal Preview v1.16.3463.0 and v1.16.3464.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-UserInterface Issues pertaining to the user interface of the Console or Terminal AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-2 A description (P2) Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicating inactive tab duplicates active one

4 participants