We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ad1d7d commit c8826e4Copy full SHA for c8826e4
1 file changed
build/gulpfile.vscode.js
@@ -493,13 +493,15 @@ gulp.task(task.define(
493
'upload-vscode-configuration',
494
task.series(
495
generateVSCodeConfigurationTask,
496
- () => {
+ async () => {
497
if (!shouldSetupSettingsSearch()) {
498
const branch = process.env.BUILD_SOURCEBRANCH;
499
console.log(`Only runs on master and release branches, not ${branch}`);
500
return;
501
}
502
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));
505
if (!fs.existsSync(allConfigDetailsPath)) {
506
throw new Error(`configuration file at ${allConfigDetailsPath} does not exist`);
507
0 commit comments