Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Remove VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
r-darwish committed Apr 8, 2021
1 parent ef13c72 commit 3cc4248
Showing 1 changed file with 8 additions and 26 deletions.
34 changes: 8 additions & 26 deletions src/steps/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,40 +80,22 @@ pub fn run_fossil(run_type: RunType) -> Result<()> {
run_type.execute(&fossil).args(&["all", "sync"]).check_run()
}

pub fn run_vscode_variant(run_type: RunType, exe: &Path) -> Result<()> {
let plugins = RunType::Wet.execute(&exe).args(&["--list-extensions"]).check_output()?;

let mut args = vec!["--force"];

for plugin in plugins.lines() {
args.push("--install-extension");
args.push(plugin);
}

if args.len() == 1 {
println!("No extensions to update");
return Ok(());
}

run_type.execute(&exe).args(args).check_run()?;

Ok(())
}

pub fn run_vscodium(run_type: RunType) -> Result<()> {
let vscode = utils::require("codium")?;
pub fn run_vscodium(_run_type: RunType) -> Result<()> {
let _vscode = utils::require("codium")?;

print_separator("Visual Studio Codium");

run_vscode_variant(run_type, &vscode)
print_warning("This step has been removed from Topgrade due to its unreliability");
Ok(())
}

pub fn run_vscode(run_type: RunType) -> Result<()> {
let vscode = utils::require("code")?;
pub fn run_vscode(_run_type: RunType) -> Result<()> {
let _vscode = utils::require("code")?;

print_separator("Visual Studio Code");

run_vscode_variant(run_type, &vscode)
print_warning("This step has been removed from Topgrade due to its unreliability");

This comment has been minimized.

Copy link
@AlexanderWillner

AlexanderWillner Apr 9, 2021

Contributor

Is there an issue about this?

Ok(())
}

pub fn run_micro(run_type: RunType) -> Result<()> {
Expand Down

0 comments on commit 3cc4248

Please sign in to comment.