src/vs/workbench/contrib/terminal/browser/terminalView.ts/getSingleTabTitle
function getSingleTabTitle(instance: ITerminalInstance | undefined, separator: string): string {
	if (!instance) {
		return '';
	}
	return !instance.description ? instance.title : `${instance.title} ${separator} ${instance.description}`;
}