2758: Add "code-oss" Visual Studio Code binary name r=matklad a=leo-lb

When Visual Studio Code is manually compiled from the upstream
source tree the binary is named "code-oss".

Co-authored-by: leo-lb <lle-bout@zaclys.net>
This commit is contained in:
bors[bot] 2020-01-07 16:18:07 +00:00 committed by GitHub
commit 2a8dd492a8
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),