-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Extension is not deactivated on closing the editor window #567
Comments
From @ArtemGovorov on November 16, 2015 7:34 Here's the workaround I use for now for OSX: process.on('SIGTERM', function () {
// extension deactivation code
}); |
From @bpasero on November 16, 2015 7:38 @ArtemGovorov is this only during extension development? Not when having the extension installed and closing the window? |
From @ArtemGovorov on November 16, 2015 7:39 @bpasero Same for the installed extension (on OSX) |
See also: #537 |
With 98473e0, VSCode's extension host will now call |
this was in the test plan |
From @ArtemGovorov on November 16, 2015 7:15
My extension spins up a few processes that I'd like to kill when it's deactivated.
The deactivation callback for
ExtensionContext
works perfectly when I stop debugger for the Extension Development Host. However, if I just close the editor window on OSX, the deactivation callback is not invoked, so I can see all created processes hanging around and not being killed.
Copied from original issue: Microsoft/vscode-extensionbuilders#113
The text was updated successfully, but these errors were encountered: