Skip to content

chore: dispose correctly in lineage panel#4740

Merged
benfdking merged 1 commit intomainfrom
disposing_correctly
Jun 15, 2025
Merged

chore: dispose correctly in lineage panel#4740
benfdking merged 1 commit intomainfrom
disposing_correctly

Conversation

@benfdking
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread vscode/extension/src/webviews/lineagePanel.ts Outdated
Comment thread vscode/extension/src/webviews/lineagePanel.ts Outdated
@benfdking benfdking requested a review from Copilot June 15, 2025 10:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures that all event listeners and message handlers in the LineagePanel are tracked and properly disposed to prevent leaks.

  • Introduces a disposeables array to collect and manage Disposable instances.
  • Registers workspace and editor listeners along with the webview message handler into disposeables.
  • Updates _extensionUri to extensionUri and adjusts related resource URI calls.

Comment thread vscode/extension/src/webviews/lineagePanel.ts Outdated
Comment thread vscode/extension/src/webviews/lineagePanel.ts Outdated
@benfdking benfdking force-pushed the disposing_correctly branch from 39c5604 to 0e1edb6 Compare June 15, 2025 10:35
@benfdking benfdking changed the title chore: dispoe correctly in lineage panel chore: dispose correctly in lineage panel Jun 15, 2025
@benfdking benfdking force-pushed the disposing_correctly branch from 0e1edb6 to 55bc0a1 Compare June 15, 2025 10:37
@benfdking benfdking merged commit a1b5903 into main Jun 15, 2025
25 checks passed
@benfdking benfdking deleted the disposing_correctly branch June 15, 2025 10:41
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.

3 participants