Skip to content

Avoid leaving detached DOM elements in Getting Started#319128

Merged
dmitrivMS merged 2 commits into
mainfrom
dev/dmitriv/perf-getting-started
May 30, 2026
Merged

Avoid leaving detached DOM elements in Getting Started#319128
dmitrivMS merged 2 commits into
mainfrom
dev/dmitriv/perf-getting-started

Conversation

@dmitrivMS
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 30, 2026 12:23
@dmitrivMS dmitrivMS added the perf label May 30, 2026
@dmitrivMS dmitrivMS self-assigned this May 30, 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 updates the Getting Started editor pane to better manage disposable UI components and avoid retaining detached DOM elements.

Changes:

  • Wraps the details scrollbar and Getting Started index lists in MutableDisposable.
  • Updates callers to access current disposable instances via .value.
  • Relies on reassignment through MutableDisposable to dispose old UI components when rebuilding slides.
Show a summary per file
File Description
src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts Reworks lifecycle management for scrollbars and index lists to dispose replaced instances automatically.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@dmitrivMS dmitrivMS enabled auto-merge (squash) May 30, 2026 12:27
@dmitrivMS dmitrivMS merged commit 1f98b39 into main May 30, 2026
25 checks passed
@dmitrivMS dmitrivMS deleted the dev/dmitriv/perf-getting-started branch May 30, 2026 22:04
@vs-code-engineering vs-code-engineering Bot added this to the 1.123.0 milestone May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants