cli: fix install on windows arm64 not working

Fixes #164573
This commit is contained in:
Connor Peet 2022-11-07 09:05:04 -08:00
parent a1946bd534
commit ddb025c979
No known key found for this signature in database
GPG key ID: CF8FD2EA0DBC61BD
2 changed files with 3 additions and 1 deletions

View file

@ -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
}

View file

@ -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()
})
}