MCPcopy Create free account
hub / github.com/continuedev/continue / getPlatform

Function getPlatform

extensions/vscode/src/util/util.ts:75–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73type Architecture = "x64" | "arm64" | "unknown";
74
75export function getPlatform(): Platform {
76 const platform = os.platform();
77 if (platform === "darwin") {
78 return "mac";
79 } else if (platform === "linux") {
80 return "linux";
81 } else if (platform === "win32") {
82 return "windows";
83 } else {
84 return "unknown";
85 }
86}
87
88export function getArchitecture(): Architecture {
89 const arch = os.arch();

Callers 4

isUnsupportedPlatformFunction · 0.70
getAltOrOptionFunction · 0.70
getMetaKeyLabelFunction · 0.70
getMetaKeyNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected