(ide: IdeType)
| 476 | if (detectedIDEs.length === 0 && context.onInstallIDEExtension && !isSupportedTerminal()) { |
| 477 | const runningIDEs = await detectRunningIDEs(); |
| 478 | const onInstall = (ide: IdeType) => { |
| 479 | if (context.onInstallIDEExtension) { |
| 480 | context.onInstallIDEExtension(ide); |
| 481 | // The completion message will be shown after installation |
| 482 | if (isJetBrainsIde(ide)) { |
| 483 | onDone(`Installed plugin to ${chalk.bold(toIDEDisplayName(ide))}\n` + `Please ${chalk.bold('restart your IDE')} completely for it to take effect`); |
| 484 | } else { |
| 485 | onDone(`Installed extension to ${chalk.bold(toIDEDisplayName(ide))}`); |
| 486 | } |
| 487 | } |
| 488 | }; |
| 489 | if (runningIDEs.length > 1) { |
| 490 | // Show selector when multiple IDEs are running |
| 491 | return <RunningIDESelector runningIDEs={runningIDEs} onSelectIDE={onInstall} onDone={() => { |
no test coverage detected