Skip to content

Commit c8826e4

Browse files
committed
Fix configuration.json publishing flakiness
1 parent 4ad1d7d commit c8826e4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build/gulpfile.vscode.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,13 +493,15 @@ gulp.task(task.define(
493493
'upload-vscode-configuration',
494494
task.series(
495495
generateVSCodeConfigurationTask,
496-
() => {
496+
async () => {
497497
if (!shouldSetupSettingsSearch()) {
498498
const branch = process.env.BUILD_SOURCEBRANCH;
499499
console.log(`Only runs on master and release branches, not ${branch}`);
500500
return;
501501
}
502502

503+
// Sometimes the file is claimed to not exist for a few milliseconds after the vscode process exits
504+
await new Promise(resolve => setTimeout(resolve, 500));
503505
if (!fs.existsSync(allConfigDetailsPath)) {
504506
throw new Error(`configuration file at ${allConfigDetailsPath} does not exist`);
505507
}

0 commit comments

Comments
 (0)