Skip to content

Fixes https://github.com/microsoft/vscode/issues/277133#289198

Merged
hediet merged 1 commit intomainfrom
hediet/b/net-earwig
Jan 20, 2026
Merged

Fixes https://github.com/microsoft/vscode/issues/277133#289198
hediet merged 1 commit intomainfrom
hediet/b/net-earwig

Conversation

@hediet
Copy link
Copy Markdown
Member

@hediet hediet commented Jan 20, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 20, 2026 19:58
@hediet hediet enabled auto-merge (squash) January 20, 2026 19:58
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 20, 2026
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 fixes a disposal pattern issue (issue #277133) where telemetry reporters weren't being properly disposed, potentially causing memory leaks. The fix refactors the disposal lifecycle by using the correct disposal API and simplifying the callback pattern.

Changes:

  • Changed from deleteAndLeak() to delete() to ensure proper disposal of telemetry reporters
  • Simplified the reporter's disposal callback from wrapping in toDisposable() to directly calling the provided callback
  • Removed unnecessary toDisposable import

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/editTelemetry/browser/telemetry/arcTelemetrySender.ts Updated disposal calls from deleteAndLeak() to delete() to properly dispose of ArcTelemetryReporter instances in two sender classes
src/vs/workbench/contrib/editTelemetry/browser/telemetry/arcTelemetryReporter.ts Simplified disposal pattern by renaming callback parameter and removing redundant toDisposable wrapper, directly invoking the disposal callback instead

@hediet hediet merged commit a461bab into main Jan 20, 2026
27 of 28 checks passed
@hediet hediet deleted the hediet/b/net-earwig branch January 20, 2026 21:29
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants