src/vs/workbench/contrib/terminal/browser/terminalGroupService.ts/TerminalGroupService/instances
class TerminalGroupService:	get instances(): ITerminalInstance[] {
		return this.groups.reduce((p, c) => p.concat(c.terminalInstances), [] as ITerminalInstance[]);
	}