src/vs/workbench/contrib/terminal/browser/terminalService.ts/TerminalService/isAttachedToTerminal
class TerminalService:	isAttachedToTerminal(remoteTerm: IRemoteTerminalAttachTarget): boolean {
		return this.instances.some(term => term.processId === remoteTerm.pid);
	}