MCPcopy
hub / github.com/microsoft/vscode-js-debug / map

Method map

src/common/environmentVars.ts:130–132  ·  view source on GitHub ↗

* Maps the environment variables. If the mapper function returns undefined, * the value is not included in the resulting set of variables.

(mapper: (key: string, value: string | null) => string | null | undefined)

Source from the content-addressed store, hash-verified

128 * the value is not included in the resulting set of variables.
129 */
130 public map(mapper: (key: string, value: string | null) => string | null | undefined) {
131 return new EnvironmentVars(mapValues(this.value, (v, k) => mapper(k, v)));
132 }
133
134 /**
135 * Merges the sets of environment variables together.

Callers 15

delFunction · 0.80
gulpfile.jsFile · 0.80
compileTsFunction · 0.80
constructorMethod · 0.80
_terminateRootMethod · 0.80
_bootMethod · 0.80
sanitizerMethod · 0.80
_restartMethod · 0.80
waitUntilChildrenAreMethod · 0.80
collectInitializeFunction · 0.80
activateFunction · 0.80

Calls 1

mapValuesFunction · 0.90

Tested by 3

gatherSmNamesFunction · 0.64
wrappedFunction · 0.64