Skip to content

Commit 481d722

Browse files
authored
Merge pull request microsoft#165724 from microsoft/connor4312/cli/download-win-arm64
cli: fix install on windows arm64 not working
2 parents a1946bd + ddb025c commit 481d722

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cli/src/update_service.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ impl Platform {
300300
Some(Platform::WindowsX64)
301301
} else if cfg!(all(target_os = "windows", target_arch = "x86")) {
302302
Some(Platform::WindowsX86)
303+
} else if cfg!(all(target_os = "windows", target_arch = "aarch64")) {
304+
Some(Platform::WindowsARM64)
303305
} else {
304306
None
305307
}

cli/src/util/prereqs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl PreReqChecker {
3939
#[cfg(not(target_os = "linux"))]
4040
pub async fn verify(&self) -> Result<Platform, AnyError> {
4141
Platform::env_default().ok_or_else(|| {
42-
SetupError("VS Code it not supported on this platform".to_owned()).into()
42+
SetupError("VS Code is not supported on this platform".to_owned()).into()
4343
})
4444
}
4545

0 commit comments

Comments
 (0)