Skip to content

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

Merged
Tyriar merged 4 commits into
microsoft:mainfrom
jeanp413:jp/fix-152785-2
Oct 6, 2022
Merged

Fixes detaching a terminal editor doesn't fire vscode.window.onDidCloseTerminal event#154546
Tyriar merged 4 commits into
microsoft:mainfrom
jeanp413:jp/fix-152785-2

Conversation

@jeanp413

@jeanp413 jeanp413 commented Jul 8, 2022

Copy link
Copy Markdown
Contributor

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
Comment thread src/vs/workbench/contrib/terminal/browser/terminalInstance.ts Outdated
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