Skip to content

Commit 4f65556

Browse files
Close sidebar when running vscode tests (#2797)
## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet --------- Co-authored-by: Phil Cohen <[email protected]>
1 parent e98bf94 commit 4f65556

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ export async function openNewEditor(
3333
await editor.edit((editBuilder) => editBuilder.setEndOfLine(eol));
3434
}
3535

36+
// Many times running these tests opens the sidebar, which slows performance. Close it.
37+
vscode.commands.executeCommand("workbench.action.closeSidebar");
38+
3639
return editor;
3740
}
3841

0 commit comments

Comments
 (0)