()
| 6 | const vscodeVersion = "1.82.0"; |
| 7 | |
| 8 | function 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 | |
| 33 | module.exports = { prepareVSCode }; |
| 34 |
no outgoing calls
no test coverage detected