Skip to content

Commit 015a99e

Browse files
committed
Always install VS Code dependencies
This fixes the case where the script is killed before all the dependencies were fully installed.
1 parent 884491d commit 015a99e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

scripts/build.ts

+3-7
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,9 @@ class Builder {
169169
});
170170
}
171171

172-
if (fs.existsSync(path.join(vscodeSourcePath, "node_modules"))) {
173-
this.log("Using existing VS Code node_modules");
174-
} else {
175-
await this.task("Installing VS Code dependencies", () => {
176-
return util.promisify(cp.exec)("yarn", { cwd: vscodeSourcePath });
177-
});
178-
}
172+
await this.task("Installing VS Code dependencies", () => {
173+
return util.promisify(cp.exec)("yarn", { cwd: vscodeSourcePath });
174+
});
179175

180176
if (fs.existsSync(path.join(vscodeSourcePath, ".build/extensions"))) {
181177
this.log("Using existing built-in-extensions");

0 commit comments

Comments
 (0)