MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getIdeClientName

Function getIdeClientName

source code/utils/ide.ts:1190–1199  ·  view source on GitHub ↗
(
  ideClient?: MCPServerConnection,
)

Source from the content-addressed store, hash-verified

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

Callers 2

getConnectedIdeNameFunction · 0.85
buildIDEPropertiesFunction · 0.85

Calls 1

toIDEDisplayNameFunction · 0.85

Tested by

no test coverage detected