Skip to content

Sets virtual clock to a fixed date#316484

Merged
hediet merged 1 commit into
mainfrom
hediet/b/ethical-marlin
May 14, 2026
Merged

Sets virtual clock to a fixed date#316484
hediet merged 1 commit into
mainfrom
hediet/b/ethical-marlin

Conversation

@hediet
Copy link
Copy Markdown
Member

@hediet hediet commented May 14, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 14, 2026 19:25
@hediet hediet enabled auto-merge May 14, 2026 19:25
@hediet hediet self-assigned this May 14, 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 makes component fixture virtual time deterministic by seeding the VirtualClock with a fixed timestamp instead of the current real time.

Changes:

  • Replaces Date.now() as the virtual clock seed with a fixed UTC date.
  • Adds explanatory comments describing why deterministic wall-clock time matters for screenshot stability.
Show a summary per file
File Description
src/vs/workbench/test/browser/componentFixtures/fixtureUtils.ts Seeds component fixture virtual time from a fixed timestamp to reduce time-based screenshot drift.

Copilot's findings

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

@hediet hediet merged commit 824ba8c into main May 14, 2026
29 checks passed
@hediet hediet deleted the hediet/b/ethical-marlin branch May 14, 2026 19:49
@vs-code-engineering vs-code-engineering Bot added this to the 1.121.0 milestone May 14, 2026
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