Skip to content

Dispose tracked objects when panel is disposed - #2891

Merged
koesie10 merged 2 commits into
mainfrom
koesie10/dispose-webview
Sep 29, 2023
Merged

koesie10 merged 2 commits into
mainfrom
koesie10/dispose-webview

Conversation

@koesie10

Copy link
Copy Markdown
Member

This will change the AbstractWebview to dispose its tracked objects (using this.push) when the panel is disposed rather than when the view is disposed. This makes this.push actually useful in a view. Before, the objects would only get disposed when the extension itself was disposed.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

This will change the `AbstractWebview` to dispose its tracked objects
(using `this.push`) when the panel is disposed rather than when the
view is disposed. This makes `this.push` actually useful in a view.
Before, the objects would only get disposed when the extension itself
was disposed.
@koesie10
koesie10 requested a review from a team as a code owner September 29, 2023 09:36

@charisk charisk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

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.

2 participants