GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — claude-code-source-code/src/hooks/useIdeConnectionStatus.ts at main · chaoswork/claude-code-source-code Expand file tree/ Copy pathuseIdeConnectionStatus.tsMore file actions 33 lines (30 loc) · 981 Bytes / Copy pathuseIdeConnectionStatus.tsFile metadata and controls33 lines (30 loc) · 981 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 import { useMemo } from 'react' import type { MCPServerConnection } from '../services/mcp/types.js' export type IdeStatus = 'connected' | 'disconnected' | 'pending' | null type IdeConnectionResult = { status: IdeStatus ideName: string | null } export function useIdeConnectionStatus( mcpClients?: MCPServerConnection[], ): IdeConnectionResult { return useMemo(() => { const ideClient = mcpClients?.find(client => client.name === 'ide') if (!ideClient) { return { status: null, ideName: null } } // Extract IDE name from config if available const config = ideClient.config const ideName = config.type === 'sse-ide' || config.type === 'ws-ide' ? config.ideName : null if (ideClient.type === 'connected') { return { status: 'connected', ideName } } if (ideClient.type === 'pending') { return { status: 'pending', ideName } } return { status: 'disconnected', ideName } }, [mcpClients]) } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |