Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix _isDefTermSession not propagating upon pane split/close #13649

Merged
4 commits merged into from
Aug 4, 2022

Conversation

PankajBhojwani
Copy link
Contributor

@PankajBhojwani PankajBhojwani commented Aug 1, 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

src/cascadia/TerminalApp/Pane.cpp Outdated Show resolved Hide resolved
src/cascadia/TerminalApp/Pane.cpp Outdated Show resolved Hide 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
@carlos-zamora carlos-zamora added this to the Terminal v1.16 milestone Aug 2, 2022
@PankajBhojwani PankajBhojwani changed the title Fix _isDefTermSession not propagating upon pane split Fix _isDefTermSession not propagating upon pane split/close Aug 2, 2022
src/cascadia/TerminalApp/Pane.h Outdated Show resolved Hide resolved
@DHowett
Copy link
Member

DHowett commented Aug 4, 2022

Thanks for this!

@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label Aug 4, 2022
@ghost
Copy link

ghost commented Aug 4, 2022

Hello @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
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

ghost commented Aug 17, 2022

🎉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