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

Function isVSCodeInstalled

src/utils/ide.ts:1120–1126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1118}
1119
1120export async function isVSCodeInstalled(): Promise<boolean> {
1121 const result = await execFileNoThrow('code', ['--help'])
1122 // Check if the output indicates this is actually Visual Studio Code
1123 return (
1124 result.code === 0 && Boolean(result.stdout?.includes('Visual Studio Code'))
1125 )
1126}
1127
1128// Cache for IDE detection results
1129let cachedRunningIDEs: IdeType[] | null = null

Callers 1

isRelevantFunction · 0.85

Calls 1

execFileNoThrowFunction · 0.70

Tested by

no test coverage detected