Install VSCode extensions with a single command (#652)

closes #647
This commit is contained in:
M*C*O
2021-02-22 09:40:20 +01:00
committed by GitHub
parent eb358c1a88
commit 30bc572c88

View File

@@ -100,13 +100,15 @@ pub fn run_vscode(run_type: RunType) -> Result<()> {
.args(&["--list-extensions"])
.check_output()?;
let mut args = vec!["--force"];
for plugin in plugins.lines() {
run_type
.execute(&vscode)
.args(&["--force", "--install-extension", plugin])
.check_run()?;
args.push("--install-extension");
args.push(plugin);
}
run_type.execute(&vscode).args(args).check_run()?;
Ok(())
}