()
| 1118 | } |
| 1119 | |
| 1120 | export 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 |
| 1129 | let cachedRunningIDEs: IdeType[] | null = null |
no test coverage detected