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 closeOnExit: always #16090

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

zadjii-msft
Copy link
Member

Well, Pane doesn't only care if the connection isn't entering a terminal state. It does need to update its own state first.

Regressed in #15335

Closes #16068

Well, Pane doesn't _only_ care if the connection isn't entering a terminal
state. It does need to update its own state first.

Regressed in #15335

Closes #16068
@microsoft-github-policy-service microsoft-github-policy-service bot added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-TerminalConnection Issues pertaining to the terminal<->backend connection interface Product-Terminal The new Windows Terminal. labels Oct 2, 2023
@@ -1040,6 +1040,7 @@ winrt::fire_and_forget Pane::_ControlConnectionStateChangedHandler(const winrt::
newConnectionState = coreState.ConnectionState();
}

const auto previousConnectionState = std::exchange(_connectionState, newConnectionState);
Copy link
Member Author

Choose a reason for hiding this comment

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

/cc @lhecker to make sure I didn't royally blow up some locking / co_await / other threading issue, which I am prone to do

Copy link
Member

Choose a reason for hiding this comment

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

Not that I can tell at least!

@DHowett DHowett merged commit 4145f18 into main Oct 3, 2023
@DHowett DHowett deleted the dev/migrie/b/16068-closeOnExit-always-actually-tho branch October 3, 2023 20:41
DHowett pushed a commit that referenced this pull request Oct 3, 2023
Well, Pane doesn't _only_ care if the connection isn't entering a
terminal state. It does need to update its own state first.

Regressed in #15335

Closes #16068

(cherry picked from commit 4145f18)
Service-Card-Id: 90731934
Service-Version: 1.19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-TerminalConnection Issues pertaining to the terminal<->backend connection interface Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.
Projects
Development

Successfully merging this pull request may close these issues.

Terminal ignores Profile termination behavior setting
4 participants