Always install VS Code dependencies

This fixes the case where the script is killed before all the
dependencies were fully installed.
This commit is contained in:
Asher 2019-12-09 10:55:24 -06:00
parent 884491d72b
commit 015a99e87d
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 3 additions and 7 deletions

View File

@ -169,13 +169,9 @@ class Builder {
});
}
if (fs.existsSync(path.join(vscodeSourcePath, "node_modules"))) {
this.log("Using existing VS Code node_modules");
} else {
await this.task("Installing VS Code dependencies", () => {
return util.promisify(cp.exec)("yarn", { cwd: vscodeSourcePath });
});
}
await this.task("Installing VS Code dependencies", () => {
return util.promisify(cp.exec)("yarn", { cwd: vscodeSourcePath });
});
if (fs.existsSync(path.join(vscodeSourcePath, ".build/extensions"))) {
this.log("Using existing built-in-extensions");