src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts/VariableResolver/resolve
class VariableResolver:	async resolve(value: string): Promise<string> {
		const replacers: Promise<string>[] = [];
		value.replace(VariableResolver.regex, (match, ...args) => {
			replacers.push(this.replacer(match, args));
			return match;
		});
		const resolvedReplacers = await Promise.all(replacers);
		return value.replace(VariableResolver.regex, () => resolvedReplacers.shift()!);

	}