src/vs/workbench/contrib/debug/browser/debugActionViewItems.ts/FocusSessionActionViewItem/mapFocusedSessionToSelected
class FocusSessionActionViewItem:	protected mapFocusedSessionToSelected(focusedSession: IDebugSession): IDebugSession {
		const showSubSessions = this.configurationService.getValue<IDebugConfiguration>('debug').showSubSessionsInToolBar;
		while (focusedSession.parentSession && !showSubSessions) {
			focusedSession = focusedSession.parentSession;
		}
		return focusedSession;
	}