MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / getEffectiveEnvironment

Function getEffectiveEnvironment

Extension/src/LanguageServer/devcmd.ts:35–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35export 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
48export async function canFindCl(): Promise<boolean> {
49 if (!isWindows) {

Callers 2

compileProgramFunction · 0.90
doBuildMethod · 0.90

Calls 2

resolveVariablesFunction · 0.90
forEachMethod · 0.45

Tested by

no test coverage detected