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 ghost terminals after using "Developer: Restart Extension Host" #5017

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

andyleejordan
Copy link
Member

When this features restarts us, we're unable to clean up our terminals because we're gone before we can finish disposing. Therefore we must search for stale terminals and dispose them.

Fixes #4986.

@Tyriar can you confirm there isn't a better way to handle this? For reference: #4986 (comment)

When this features restarts us, we're unable to clean up our terminals
because we're gone before we can finish disposing. Therefore we must
search for stale terminals and dispose them.
@andyleejordan andyleejordan requested a review from a team July 16, 2024 00:34
@Tyriar
Copy link
Contributor

Tyriar commented Jul 16, 2024

I think you'll have to do something like this to handle it gracefully atm

@andyleejordan
Copy link
Member Author

Thanks!

Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

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

LGTM!

@andyleejordan andyleejordan added this pull request to the merge queue Jul 16, 2024
Merged via the queue into main with commit d69ee8a Jul 16, 2024
7 checks passed
@andyleejordan andyleejordan deleted the andyleejordan/fix-restartExtensionHost branch July 16, 2024 18:28
@JustinGrote
Copy link
Collaborator

LGTM, too bad there isn't something more graceful ATN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VSCode "restart extensions" on any extension update makes vscode-powershell start a new terminal
4 participants