MCPcopy Index your code
hub / github.com/codeaashu/claude-code / findCurrentIDE

Function findCurrentIDE

src/commands/ide/ide.tsx:208–219  ·  view source on GitHub ↗
(availableIDEs: DetectedIDEInfo[], dynamicMcpConfig?: Record<string, ScopedMcpServerConfig>)

Source from the content-addressed store, hash-verified

206 return acc;
207}
208async function findCurrentIDE(availableIDEs: DetectedIDEInfo[], dynamicMcpConfig?: Record<string, ScopedMcpServerConfig>): Promise<DetectedIDEInfo | null> {
209 const currentConfig = dynamicMcpConfig?.ide;
210 if (!currentConfig || currentConfig.type !== 'sse-ide' && currentConfig.type !== 'ws-ide') {
211 return null;
212 }
213 for (const ide of availableIDEs) {
214 if (ide.url === currentConfig.url) {
215 return ide;
216 }
217 }
218 return null;
219}
220type IDEOpenSelectionProps = {
221 availableIDEs: DetectedIDEInfo[];
222 onSelectIDE: (ide?: DetectedIDEInfo) => void;

Callers 1

callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected