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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes detaching a terminal editor doesn't fire vscode.window.onDidCloseTerminal event #154546

Merged
merged 4 commits into from Oct 6, 2022

Conversation

jeanp413
Copy link
Contributor

@jeanp413 jeanp413 commented Jul 8, 2022

This PR fixes #152785

First PR got reverted because #153486 . I tried reproducing it but couldn't 馃う

From the stack trace Alex posted it looks like an exception in xterm while being disposed Cannot read properties of undefined (reading 'marker'): TypeError: Cannot read properties of undefined (reading 'marker') in DecorationService

So I added a try catch in the meantime to swallow the exception and the onDisposed event gets fired successfully

cc @Tyriar

@Tyriar Tyriar added this to the October 2022 milestone Oct 3, 2022
meganrogge
meganrogge previously approved these changes Oct 6, 2022
@meganrogge meganrogge requested a review from Tyriar October 6, 2022 17:19
@Tyriar Tyriar enabled auto-merge October 6, 2022 17:37
@Tyriar Tyriar merged commit 8636541 into microsoft:main Oct 6, 2022
@jeanp413 jeanp413 deleted the jp/fix-152785-2 branch October 6, 2022 18:02
@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detaching a terminal editor doesn't fire vscode.window.onDidCloseTerminal event
3 participants