()
| 1059 | } |
| 1060 | |
| 1061 | export 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 |
| 1070 | let cachedRunningIDEs: IdeType[] | null = null |
no test coverage detected