Repository navigation
perf: make the Test Explorer faster when running many tests - #345896
Merged
Connor Peet (connor4312) merged 4 commits intoNov 4, 2026
Merged
Connor Peet (connor4312) merged 4 commits into
Connor Peet (connor4312) merged 4 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the Test Explorer hover reuse and batched row-rendering changes.
No open issues 🎉
What changed in this PR
Improves Test Explorer responsiveness during large test runs by reducing repeated hover creation and row-rendering work.
Changes:
- Reuses one managed hover per row template and updates its content.
- Batches row updates within an event-loop turn and cancels pending renders when rows are removed.
- Adds regression coverage for batching, hover reuse, and disposal.
No actionable findings remain.
| File | Description |
|---|---|
src/vs/workbench/contrib/testing/test/browser/testingExplorerView.test.ts |
Adds tests for batched updates, persistent hovers, and cleanup. |
src/vs/workbench/contrib/testing/browser/testingExplorerView.ts |
Reuses row hovers, schedules batched renders, and disposes row and template resources. |
Review effort: Balanced
Connor Peet (connor4312)
enabled auto-merge (squash)
November 3, 2026 22:21
Dmitriy Vasyura (dmitrivMS)
previously approved these changes
Nov 3, 2026
Member
|
Simon Siefke (@SimonSiefke) looks like a test failure |
auto-merge was automatically disabled
November 3, 2026 23:30
Head branch was pushed to by a user without write access
Simon Siefke (SimonSiefke)
dismissed stale reviews from Dmitriy Vasyura (dmitrivMS) and Connor Peet (connor4312)
via
November 3, 2026 23:30
93a5925
Contributor
Author
|
Fixed flaky test by using fake timers! |
Connor Peet (connor4312)
enabled auto-merge (squash)
November 3, 2026 23:33
Connor Peet (connor4312)
approved these changes
Nov 3, 2026
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 4, 2026
Ross Wollman (rwoll)
approved these changes
Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #238241.
Details
Large test runs send many state and duration changes for the same visible rows. Each change creates another managed hover and rebuilds the row's actions. The repeated listener and action work delays the renderer after Mocha has finished.
Change
Keep one hover per row template and update its contents. Batch row renders within an event-loop turn, cancel pending renders when a row is removed, and dispose both row and template resources.
Before
Much of the renderer CPU time is spent on event listener work from repeatedly creating row hovers and rebuilding actions.
After
79.1% less renderer CPU time for 500 Mocha tests.
Test Video
Test.webm
Additional Details
Running 5000 Mocha Tests in VSCode
AI disclosure: Model: GPT 6.1 Sol. Worktime: 37 min