Skip to content

Commit 121372d

Browse files
Close sidebar when running vscode tests
1 parent 3266cc7 commit 121372d

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 the sidebar will be opened so we close it.
37+
vscode.commands.executeCommand("workbench.action.closeSidebar");
38+
3639
return editor;
3740
}
3841

0 commit comments

Comments
 (0)