diff --git a/src/vs/base/test/common/timeTravelScheduler.ts b/src/vs/base/test/common/timeTravelScheduler.ts index 9081b7c5632cc..470d93ac86486 100644 --- a/src/vs/base/test/common/timeTravelScheduler.ts +++ b/src/vs/base/test/common/timeTravelScheduler.ts @@ -5,6 +5,7 @@ import { Emitter, Event } from 'vs/base/common/event'; import { Disposable, IDisposable } from 'vs/base/common/lifecycle'; +import { setTimeout0 } from 'vs/base/common/platform'; interface PriorityQueue { length: number; @@ -178,7 +179,7 @@ export class AsyncSchedulerProcessor extends Disposable { if (this.useSetImmediate) { originalGlobalValues.setImmediate(() => this.process()); } else { - originalGlobalValues.setTimeout(() => this.process()); + setTimeout0(() => this.process()); } }); }