From bfffa85f3c4bb384f4f42e1106fcc36be7a5110f Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Mon, 6 May 2024 20:21:06 +0800 Subject: [PATCH] feat: support VSCodium in the step VSCode --- src/steps/generic.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/steps/generic.rs b/src/steps/generic.rs index 2db01bae..b6ba3a4c 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -354,7 +354,9 @@ 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