Skip to content

Commit 1166a2e

Browse files
committed
Use setTimeout instead of process.nextTick.
1 parent 6857a2f commit 1166a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/contrib/inlineCompletions/test/timeTravelScheduler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class AsyncSchedulerProcessor extends Disposable {
172172
// This allows promises created by a previous task to settle and schedule tasks before the next task is run.
173173
// Tasks scheduled in those promises might have to run before the current next task.
174174
Promise.resolve().then(() => {
175-
process.nextTick(() => this.process());
175+
originalGlobalValues.setTimeout(() => this.process());
176176
});
177177
}
178178

0 commit comments

Comments
 (0)