src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.ts/TerminalContributionService/constructor
class TerminalContributionService:	constructor() {
		terminalsExtPoint.setHandler(contributions => {
			this._terminalProfiles = flatten(contributions.map(c => {
				return c.value?.profiles?.map(e => {
					// Only support $(id) for now, without that it should point to a path to be
					// consistent with other icon APIs
					if (e.icon && e.icon.startsWith('$(') && e.icon.endsWith(')')) {
						e.icon = e.icon.substr(2, e.icon.length - 3);
					} else {
						e.icon = undefined;
					}
					return { ...e, extensionIdentifier: c.description.identifier.value };
				}) || [];
			}));
		});
	}