MCPcopy Create free account
hub / github.com/dethcrypto/dethcode / prepareVSCode

Function prepareVSCode

packages/vscode-host/scripts/prepareVSCode.js:8–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const vscodeVersion = "1.82.0";
7
8function prepareVSCode() {
9 log.info("============ Cloning VSCode...");
10
11 chdir(__dirname, "..");
12
13 if (existsSync("vscode")) {
14 log.info("./vscode directory already exists — cloning skipped");
15 } else {
16 execSync(
17 `git clone --depth 1 --branch ${vscodeVersion} https://github.com/microsoft/vscode.git`,
18 {
19 stdio: "inherit",
20 }
21 );
22 }
23
24 chdir("vscode");
25
26 log.info("============ Installing VSCode dependencies...");
27
28 if (!existsSync("node_modules")) {
29 execSync("yarn", { stdio: "inherit" });
30 }
31}
32
33module.exports = { prepareVSCode };
34

Callers 2

prepareVSCode.jsFile · 0.85
build.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected