Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
i386 -> x86
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperAuguste committed Nov 18, 2022
1 parent 1ac92fc commit 2167931
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"scope": "resource",
"type": "boolean",
"description": "Whether to automatically check for new updates",
"default": "true"
"default": true
},
"zls.path": {
"scope": "resource",
Expand Down
10 changes: 5 additions & 5 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ const downloadsRoot = "https://zig.pm/zls/downloads";

/* eslint-disable @typescript-eslint/naming-convention */
enum InstallationName {
i386_linux = "i386-linux",
i386_windows = "i386-windows",
x86_linux = "x86-linux",
x86_windows = "x86-windows",
x86_64_linux = "x86_64-linux",
x86_64_macos = "x86_64-macos",
x86_64_windows = "x86_64-windows",
arm_64_macos = 'aarch64-macos',
arm_64_macos = "aarch64-macos",
}
/* eslint-enable @typescript-eslint/naming-convention */

Expand All @@ -36,8 +36,8 @@ function getDefaultInstallationName(): InstallationName | null {
const plat = process.platform;
const arch = process.arch;
if (arch === "ia32") {
if (plat === "linux") return InstallationName.i386_linux;
else if (plat === "win32") return InstallationName.i386_windows;
if (plat === "linux") return InstallationName.x86_linux;
else if (plat === "win32") return InstallationName.x86_windows;
} else if (arch === "x64") {
if (plat === "linux") return InstallationName.x86_64_linux;
else if (plat === "darwin") return InstallationName.x86_64_macos;
Expand Down

0 comments on commit 2167931

Please sign in to comment.