* Returns the VS Code config section key (`windows`/`osx`/`linux`) used for * platform-specific terminal profiles.
(platform: NodeJS.Platform = process.platform)
| 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 |
no outgoing calls
no test coverage detected