( ideClient?: MCPServerConnection, )
| 1186 | } |
| 1187 | |
| 1188 | export function getIdeClientName( |
| 1189 | ideClient?: MCPServerConnection, |
| 1190 | ): string | null { |
| 1191 | const config = ideClient?.config |
| 1192 | return config?.type === 'sse-ide' || config?.type === 'ws-ide' |
| 1193 | ? config.ideName |
| 1194 | : isSupportedTerminal() |
| 1195 | ? toIDEDisplayName(envDynamic.terminal) |
| 1196 | : null |
| 1197 | } |
| 1198 | |
| 1199 | const EDITOR_DISPLAY_NAMES: Record<string, string> = { |
| 1200 | code: 'VS Code', |
no test coverage detected