()
| 46 | } |
| 47 | |
| 48 | export async function canFindCl(): Promise<boolean> { |
| 49 | if (!isWindows) { |
| 50 | return false; |
| 51 | } |
| 52 | const pathOverride = resolveVariables(extensionContext?.environmentVariableCollection.get('Path')?.value); |
| 53 | const path = pathOverride ?? process.env['Path']; |
| 54 | const found = await whichAsync('cl.exe', path); |
| 55 | return isString(found); |
| 56 | } |
| 57 | |
| 58 | export async function setEnvironment(context?: vscode.ExtensionContext) { |
| 59 | if (!isWindows) { |
no test coverage detected