Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/test/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function closeWindowsInteral() {
// Lets not waste too much time.
const timer = setTimeout(() => {
reject(new Error("Command 'workbench.action.closeAllEditors' timed out"));
}, 2000);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will fix it. If it times out it might still take longer. I believe it never returns. But worth a shot.

Copy link
Author

@karrtikr karrtikr Feb 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kimadeline @rchiodo I think it does return within 15 seconds, as we did not have this error before #15208 where we decreased the timeout. So it should fix the error.

I'll use #15208 (comment) to fix it otherwise.

}, 15000);
vscode.commands.executeCommand('workbench.action.closeAllEditors').then(
() => {
clearTimeout(timer);
Expand Down