MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getPlatformProfileKey

Method getPlatformProfileKey

src/integrations/terminal/Terminal.ts:253–263  ·  view source on GitHub ↗

* Returns the VS Code config section key (`windows`/`osx`/`linux`) used for * platform-specific terminal profiles.

(platform: NodeJS.Platform = process.platform)

Source from the content-addressed store, hash-verified

251 * platform-specific terminal profiles.
252 */
253 public static getPlatformProfileKey(platform: NodeJS.Platform = process.platform): "windows" | "osx" | "linux" {
254 if (platform === "win32") {
255 return "windows"
256 }
257
258 if (platform === "darwin") {
259 return "osx"
260 }
261
262 return "linux"
263 }
264
265 /**
266 * Resolves a profile path to an executable on disk. VS Code's built-in Unix

Callers 4

getConfiguredProfilesMethod · 0.80
getProfileShellMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected