Skip to content

Commit 180e60c

Browse files
Another try at changing open notebook time out
1 parent 26f1bd0 commit 180e60c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/cursorless-vscode-e2e/src/suite/crossCellsSetSelection.vscode.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ async function runTest() {
2020

2121
await openNewNotebookEditor(['"hello"', '"world"']);
2222

23-
await sleep(200);
24-
2523
await hatTokenMap.allocateHats();
2624

2725
await runCursorlessCommand({

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function waitForEditorToOpen(): Promise<void> {
109109
const interval = setInterval(() => {
110110
if (vscode.window.activeTextEditor != null) {
111111
clearInterval(interval);
112-
resolve();
112+
setTimeout(resolve, 300);
113113
} else {
114114
count++;
115115
if (count === 20) {

0 commit comments

Comments
 (0)