MCPcopy Create free account
hub / github.com/hediet/vscode-debug-visualizer / render

Method render

extension/src/Config.ts:115–119  ·  view source on GitHub ↗
(data: Record<string, () => string>)

Source from the content-addressed store, hash-verified

113 constructor(private readonly str: string) {}
114
115 render(data: Record<string, () => string>): string {
116 return this.str.replace(/\$\{([a-zA-Z0-9]+)\}/g, (substr, grp1) => {
117 return data[grp1]();
118 });
119 }
120}

Callers 1

customScriptPathsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected