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

Function resolveVariablesArray

Extension/src/common.ts:462–472  ·  view source on GitHub ↗
(variables: string[] | undefined, additionalEnvironment?: Record<string, string | string[]>)

Source from the content-addressed store, hash-verified

460}
461
462export function resolveVariablesArray(variables: string[] | undefined, additionalEnvironment?: Record<string, string | string[]>): string[] {
463 let result: string[] = [];
464 if (variables) {
465 variables.forEach(variable => {
466 const variablesResolved: string[] = [];
467 const variableResolved: string = resolveVariables(variable, additionalEnvironment, variablesResolved);
468 result = result.concat(variablesResolved.length === 0 ? variableResolved : variablesResolved);
469 });
470 }
471 return result;
472}
473
474// Resolve '~' at the start of the path.
475export function resolveHome(filePath: string): string {

Callers

nothing calls this directly

Calls 2

resolveVariablesFunction · 0.85
forEachMethod · 0.45

Tested by

no test coverage detected