Add "code-oss" Visual Studio Code binary name

When Visual Studio Code is manually compiled from the upstream
source tree the binary is named "code-oss".
This commit is contained in:
leo-lb 2020-01-07 16:42:45 +01:00 committed by GitHub
parent 9df1663c12
commit e34c5d0f06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ fn install_client(ClientOpt::VsCode: ClientOpt) -> Result<()> {
} }
.run()?; .run()?;
let code_binary = ["code", "code-insiders", "codium"].iter().find(|bin| { let code_binary = ["code", "code-insiders", "codium", "code-oss"].iter().find(|bin| {
Cmd { Cmd {
unix: &format!("{} --version", bin), unix: &format!("{} --version", bin),
windows: &format!("cmd.exe /c {}.cmd --version", bin), windows: &format!("cmd.exe /c {}.cmd --version", bin),