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

Function isVSCodeInstalled

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

Source from the content-addressed store, hash-verified

1059}
1060
1061export async function isVSCodeInstalled(): Promise<boolean> {
1062 const result = await execFileNoThrow('code', ['--help'])
1063 // Check if the output indicates this is actually Visual Studio Code
1064 return (
1065 result.code === 0 && Boolean(result.stdout?.includes('Visual Studio Code'))
1066 )
1067}
1068
1069// Cache for IDE detection results
1070let cachedRunningIDEs: IdeType[] | null = null

Callers 1

isRelevantFunction · 0.85

Calls 1

execFileNoThrowFunction · 0.85

Tested by

no test coverage detected