Skip to content

Commit

Permalink
feat: support VSCodium
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Jan 3, 2025
1 parent aebc035 commit 5940e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1729,4 +1729,4 @@ mod test {
config.opt = CommandLineArgs::parse_from(["topgrade", "--remote-host-limit", "other_hostname"]);
assert!(!config.should_execute_remote(Ok("hostname".to_string()), "user@remote_hostname"))
}
}
}
2 changes: 1 addition & 1 deletion src/steps/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ pub fn run_vscode_extensions_update(ctx: &ExecutionContext) -> Result<()> {
return Err(SkipStep(String::from("Should not run in WSL")).into());
}

let vscode = require("code")?;
let vscode = require("code").or_else(|_| require("codium"))?;

// Vscode has update command only since 1.86 version ("january 2024" update), disable the update for prior versions
// Use command `code --version` which returns 3 lines: version, git commit, instruction set. We parse only the first one
Expand Down

0 comments on commit 5940e0b

Please sign in to comment.