src/vs/platform/terminal/node/terminalProfiles.ts/validateIcon
function validateIcon(icon: string | TerminalIcon | undefined): TerminalIcon | undefined {
	if (typeof icon === 'string') {
		return { id: icon };
	}
	return icon;
}