Skip to content

Can we store all the disposables in a top-level array or set? #1195

Discussion options

You must be logged in to vote

That is a simplified solution to the problem that is not optimal. You should dispose objects as soon as you no longer need them (for example your view is no longer visible).
Your proposed solution - you would only dispose once VS Code is getting shut down (your extension is getting deactivated). This is not optimal and I highly recommend that you dispose your objects as soon as you no longer need them. Thanks

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KermanX
Comment options

Answer selected by isidorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants