Skip to content
Draft
Show file tree
Hide file tree
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
5 changes: 1 addition & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ schedules:

variables:
- name: testVSCodeVersion
${{ if eq( variables['Build.Reason'], 'Schedule' ) }}:
value: insiders
${{ else }}:
value: stable
value: insiders

stages:
- template: azure-pipelines/build-vsix.yml
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines/profiling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ extends:
parameters:
installDotNet: true
npmCommand: profiling
testVSCodeVersion: stable
testVSCodeVersion: insiders
isIntegration: true
19 changes: 1 addition & 18 deletions test/vscodeLauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,7 @@ export async function prepareVSCodeAndExecuteTests(

async function installExtensions(extensionIds: string[], vscodeCli: string, vscodeArgs: string[]): Promise<void> {
for (const extensionId of extensionIds) {
// Workaround for https://github.com/microsoft/vscode/issues/256031 to retry installing the extension with a delay.
let installError: any | undefined = undefined;
let installSucceeded = false;
for (let attempts = 0; attempts < 5; attempts++) {
try {
await installExtension(extensionId, vscodeCli, vscodeArgs);
installSucceeded = true;
break;
} catch (error) {
console.warn(`Failed to install extension ${extensionId}; retrying: ${error}`);
installError = error;
await new Promise((resolve) => setTimeout(resolve, 2000));
}
}

if (!installSucceeded) {
throw installError;
}
await installExtension(extensionId, vscodeCli, vscodeArgs);
}

console.log();
Expand Down
Loading