( appName: string, absolutePath: string, platform: NodeJS.Platform, )
| 173 | } |
| 174 | |
| 175 | function openInMacApp( |
| 176 | appName: string, |
| 177 | absolutePath: string, |
| 178 | platform: NodeJS.Platform, |
| 179 | ): LaunchCommand { |
| 180 | if (platform === 'darwin') { |
| 181 | return { command: 'open', args: ['-a', appName, absolutePath] }; |
| 182 | } |
| 183 | // These apps are macOS-only in the UI; fall back to the platform default. |
| 184 | return openFileCommandFor(absolutePath, undefined, process.env, platform); |
| 185 | } |
| 186 | |
| 187 | export async function launchDetached(cmd: LaunchCommand): Promise<void> { |
| 188 | return new Promise<void>((resolve, reject) => { |
no test coverage detected