parent
f133b00851
commit
3ff83eda45
@ -158,9 +158,8 @@ class Builder {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Download and prepare VS Code if necessary (should be cached by CI).
|
// Download and prepare VS Code if necessary (should be cached by CI).
|
||||||
const exists = fs.existsSync(vscodeSourcePath);
|
if (fs.existsSync(vscodeSourcePath)) {
|
||||||
if (exists) {
|
this.log("Using existing VS Code clone");
|
||||||
this.log("Using existing VS Code directory");
|
|
||||||
} else {
|
} else {
|
||||||
await this.task("Cloning VS Code", () => {
|
await this.task("Cloning VS Code", () => {
|
||||||
return util.promisify(cp.exec)(
|
return util.promisify(cp.exec)(
|
||||||
@ -168,11 +167,19 @@ class Builder {
|
|||||||
+ ` --quiet --branch "${vscodeVersion}"`
|
+ ` --quiet --branch "${vscodeVersion}"`
|
||||||
+ ` --single-branch --depth=1 "${vscodeSourcePath}"`);
|
+ ` --single-branch --depth=1 "${vscodeSourcePath}"`);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
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"))) {
|
||||||
|
this.log("Using existing built-in-extensions");
|
||||||
|
} else {
|
||||||
await this.task("Building default extensions", () => {
|
await this.task("Building default extensions", () => {
|
||||||
return util.promisify(cp.exec)(
|
return util.promisify(cp.exec)(
|
||||||
"yarn gulp compile-extensions-build --max-old-space-size=32384",
|
"yarn gulp compile-extensions-build --max-old-space-size=32384",
|
||||||
|
Loading…
Reference in New Issue
Block a user