( ideClient?: MCPServerConnection, )
| 1245 | } |
| 1246 | |
| 1247 | export function getIdeClientName( |
| 1248 | ideClient?: MCPServerConnection, |
| 1249 | ): string | null { |
| 1250 | const config = ideClient?.config |
| 1251 | return config?.type === 'sse-ide' || config?.type === 'ws-ide' |
| 1252 | ? config.ideName |
| 1253 | : isSupportedTerminal() |
| 1254 | ? toIDEDisplayName(envDynamic.terminal) |
| 1255 | : null |
| 1256 | } |
| 1257 | |
| 1258 | const EDITOR_DISPLAY_NAMES: Record<string, string> = { |
| 1259 | code: 'VS Code', |
no test coverage detected