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

Function getIdeClientName

src/utils/ide.ts:1188–1197  ·  view source on GitHub ↗
(
  ideClient?: MCPServerConnection,
)

Source from the content-addressed store, hash-verified

1186}
1187
1188export 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
1199const EDITOR_DISPLAY_NAMES: Record<string, string> = {
1200 code: 'VS Code',

Callers 2

getConnectedIdeNameFunction · 0.85
buildIDEPropertiesFunction · 0.85

Calls 1

toIDEDisplayNameFunction · 0.85

Tested by

no test coverage detected