Skip to content

Commit f1abdba

Browse files
committed
fix silly error
1 parent 165eef6 commit f1abdba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/vscodeLauncher.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,21 @@ export async function prepareVSCodeAndExecuteTests(
7070
async function installExtensions(extensionIds: string[], vscodeCli: string, vscodeArgs: string[]): Promise<void> {
7171
for (const extensionId of extensionIds) {
7272
// Workaround for https://github.com/microsoft/vscode/issues/256031 to retry installing the extension with a delay.
73+
let installError: any | undefined = undefined;
7374
for (let attempts = 0; attempts < 5; attempts++) {
7475
try {
7576
await installExtension(extensionId, vscodeCli, vscodeArgs);
76-
return;
77+
break;
7778
} catch (error) {
7879
console.warn(`Failed to install extension ${extensionId}; retrying: ${error}`);
80+
installError = error;
7981
await new Promise((resolve) => setTimeout(resolve, 2000));
8082
}
8183
}
84+
85+
if (installError) {
86+
throw installError;
87+
}
8288
}
8389

8490
console.log();

0 commit comments

Comments
 (0)