()
| 96 | } |
| 97 | |
| 98 | export async function getTerminalWithJetBrainsDetectionAsync(): Promise< |
| 99 | string | null |
| 100 | > { |
| 101 | // Check for JetBrains terminal on Linux/Windows |
| 102 | if (process.env.TERMINAL_EMULATOR === 'JetBrains-JediTerm') { |
| 103 | // For macOS, bundle ID detection above already handles JetBrains IDEs |
| 104 | if (env.platform !== 'darwin') { |
| 105 | const specificIDE = await detectJetBrainsIDEFromParentProcessAsync() |
| 106 | return specificIDE || 'pycharm' |
| 107 | } |
| 108 | } |
| 109 | return env.terminal |
| 110 | } |
| 111 | |
| 112 | // Synchronous version that returns cached result or falls back to env.terminal |
| 113 | // Used for backward compatibility - callers should migrate to async version |
nothing calls this directly
no test coverage detected