MCPcopy Create free account
hub / github.com/codeaashu/claude-code / onInstall

Function onInstall

src/commands/ide/ide.tsx:478–488  ·  view source on GitHub ↗
(ide: IdeType)

Source from the content-addressed store, hash-verified

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={() => {

Callers 1

InstallOnMountFunction · 0.85

Calls 3

isJetBrainsIdeFunction · 0.85
toIDEDisplayNameFunction · 0.85
onDoneFunction · 0.50

Tested by

no test coverage detected