Skip to content

Fix _isDefTermSession not propagating upon pane split/close - #13649

Merged
4 commits merged into
mainfrom
dev/pabhoj/fix_automatic
Aug 4, 2022
Merged

4 commits merged into
mainfrom
dev/pabhoj/fix_automatic

Conversation

@PankajBhojwani

@PankajBhojwani PankajBhojwani commented Aug 1, 2022 •

Copy link
Copy Markdown
Contributor

Summary of the Pull Request

In #13560 we added a member to Pane that lets it know if it was spawned as a default terminal session, but did not propagate that value when the pane gets split or when the pane closes. This commit fixes that.

Validation Steps Performed

A session spawned by a def term invocation remembers it even as it goes through splits

Comment thread src/cascadia/TerminalApp/Pane.cpp Resolved
Comment thread src/cascadia/TerminalApp/Pane.cpp Resolved
@ghost ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 1, 2022
@PankajBhojwani PankajBhojwani changed the title Fix _isDefTermSession not propagating upon pane split Fix _isDefTermSession not propagating upon pane split/close Aug 2, 2022
Comment thread src/cascadia/TerminalApp/Pane.h Resolved
@DHowett

Copy link
Copy Markdown
Member

Thanks for this!

@DHowett Dustin L. Howett (DHowett) added the AutoMerge Marked for automatic merge by the bot when requirements are met label Aug 4, 2022
@ghost

Copy link
Copy Markdown

Hello Dustin L. Howett (@DHowett)!

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.

@ghost
ghost merged commit 1a77834 into main Aug 4, 2022
@ghost
ghost deleted the dev/pabhoj/fix_automatic branch August 4, 2022 01:34
Dustin L. Howett (DHowett) pushed a commit that referenced this pull request Aug 8, 2022
## Summary of the Pull Request
In #13560 we added a member to `Pane` that lets it know if it was spawned as a default terminal session, but did not propagate that value when the pane gets split or when the pane closes. This commit fixes that.

## Validation Steps Performed
A session spawned by a def term invocation remembers it even as it goes through splits

(cherry picked from commit 1a77834)
Service-Card-Id: 84836635
Service-Version: 1.15
@ghost

Copy link
Copy Markdown

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

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AutoMerge Marked for automatic merge by the bot when requirements are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants