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

Function resolveWindowsEnvironmentVariables

Extension/src/common.ts:956–961  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

954}
955
956function resolveWindowsEnvironmentVariables(str: string): string {
957 return str.replace(/%([^%]+)%/g, (withPercents, withoutPercents) => {
958 const found: string | undefined = process.env[withoutPercents];
959 return found || withPercents;
960 });
961}
962
963function legacyExtractArgs(argsString: string): string[] {
964 const result: string[] = [];

Callers 1

extractArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected