-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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 opening the debug tap #11445
Fix opening the debug tap #11445
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1025,7 +1025,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation | |
|
||
TerminalConnection::ConnectionState ControlCore::ConnectionState() const | ||
{ | ||
return _connection.State(); | ||
return _connection ? _connection.State() : TerminalConnection::ConnectionState::Closed; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This I actually hit in teardown, weirdly enough. A control closed, which bubbled up and out to the pane, who asked the control what its There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ty, sorry, not fully paged in 😄 |
||
} | ||
|
||
hstring ControlCore::Title() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we think about making it so that's not a problem? Should TermControl buffer so Connections (eventually, 3p connections) don't need to "slow down"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm worried that TC calls Start before it is really "ready" to receive text honestly..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, TC is ready for the text. The issue is that in this case, there's a connection that needs two different TC's to be ready. So this is about syncing up those two.
I considered having TC start by buffering the output internally, but I figured the options were:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh dang, you're right. Sorry. Yeah.
I wonder, then, whether DebugTapConn should buffer. In the future. Thanks!