Skip to content

Commit ad7c76e

Browse files
Increase reliability of opening new netbook editor (#2933)
1 parent 38a9446 commit ad7c76e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/vscode-common/src/testUtil/openNewEditor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ function waitForEditorToOpen() {
109109
const interval = setInterval(() => {
110110
if (vscode.window.activeTextEditor != null) {
111111
clearInterval(interval);
112-
resolve();
112+
// Give it a moment to settle
113+
setTimeout(resolve, 100);
113114
} else {
114115
count++;
115116
if (count === 20) {

0 commit comments

Comments
 (0)