Skip to content

Commit

Permalink
cli: fix install on windows arm64 not working
Browse files Browse the repository at this point in the history
Fixes #164573
  • Loading branch information
connor4312 committed Nov 7, 2022
1 parent a1946bd commit ddb025c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cli/src/update_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ impl Platform {
Some(Platform::WindowsX64)
} else if cfg!(all(target_os = "windows", target_arch = "x86")) {
Some(Platform::WindowsX86)
} else if cfg!(all(target_os = "windows", target_arch = "aarch64")) {
Some(Platform::WindowsARM64)
} else {
None
}
Expand Down
2 changes: 1 addition & 1 deletion cli/src/util/prereqs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl PreReqChecker {
#[cfg(not(target_os = "linux"))]
pub async fn verify(&self) -> Result<Platform, AnyError> {
Platform::env_default().ok_or_else(|| {
SetupError("VS Code it not supported on this platform".to_owned()).into()
SetupError("VS Code is not supported on this platform".to_owned()).into()
})
}

Expand Down

0 comments on commit ddb025c

Please sign in to comment.