MCPcopy Create free account
hub / github.com/Noumena-Network/code / getIdeClientName

Function getIdeClientName

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

Source from the content-addressed store, hash-verified

1245}
1246
1247export 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
1258const EDITOR_DISPLAY_NAMES: Record<string, string> = {
1259 code: 'VS Code',

Callers 2

getConnectedIdeNameFunction · 0.85
buildIDEPropertiesFunction · 0.85

Calls 1

toIDEDisplayNameFunction · 0.85

Tested by

no test coverage detected