MCPcopy Create free account
hub / github.com/Noumena-Network/code / getTerminalWithJetBrainsDetectionAsync

Function getTerminalWithJetBrainsDetectionAsync

src/utils/envDynamic.ts:98–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98export 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

Callers

nothing calls this directly

Tested by

no test coverage detected