-
Notifications
You must be signed in to change notification settings - Fork 511
VSCode "restart extensions" on any extension update makes vscode-powershell start a new terminal #4986
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
Comments
Thanks for the report. @andyleejordan being able to restart the extension host without restarting all of vscode is a new feature, and I'm not exactly sure how the cleanup/teardown works but I'm guessing we need to add a teardown step for the extension or probably a disposable that makes sure to clean up the extension terminal. EDIT: Also FWIW I could reproduce even when not upgrading, just running restart extension host |
Yeah, we have logic setup to handle tear down...but those handlers actually need to fire. This is the main one: vscode-powershell/src/process.ts Lines 112 to 116 in 0093415
If the extension host is being restarted, I assume that means our handler can't fire, which would result in this behavior. We'll have to look into if there are any like "deactivate" hooks to implement. |
@andyleejordan you probably need to register |
Sooo as far as I can tell all those things are wired up correctly. I think disposing a |
I think what's probably happening here is Renderer: Calls ext host: @andyleejordan could you dispose the terminal/do the clean up after the restart happens? |
Prerequisites
Summary
In VSCode, if updating any VSCode extension, then push the "restart extensions" button,
vscode-powershell
fires up a new terminal without killing the running one.240513-vscode-restart-extensions.mp4
PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
"powershell.startAutomatically": true
could be relevant here?Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: