()
| 33 | } |
| 34 | |
| 35 | export function getEffectiveEnvironment(): { [key: string]: string | undefined } { |
| 36 | const env = { ...process.env }; |
| 37 | extensionContext?.environmentVariableCollection.forEach((variable: string, mutator: vscode.EnvironmentVariableMutator) => { |
| 38 | if (variable.toLowerCase() === "path") { |
| 39 | // Path is special because it has a placeholder to insert the current Path into. |
| 40 | env[variable] = resolveVariables(mutator.value); |
| 41 | } else { |
| 42 | env[variable] = mutator.value; |
| 43 | } |
| 44 | }); |
| 45 | return env; |
| 46 | } |
| 47 | |
| 48 | export async function canFindCl(): Promise<boolean> { |
| 49 | if (!isWindows) { |
no test coverage detected