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:
parent
884491d72b
commit
015a99e87d
@ -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", () => {
|
await this.task("Installing VS Code dependencies", () => {
|
||||||
return util.promisify(cp.exec)("yarn", { cwd: vscodeSourcePath });
|
return util.promisify(cp.exec)("yarn", { cwd: vscodeSourcePath });
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
if (fs.existsSync(path.join(vscodeSourcePath, ".build/extensions"))) {
|
if (fs.existsSync(path.join(vscodeSourcePath, ".build/extensions"))) {
|
||||||
this.log("Using existing built-in-extensions");
|
this.log("Using existing built-in-extensions");
|
||||||
|
Loading…
Reference in New Issue
Block a user