( byThreadKey: Record<string, DiffPanelSelection>, ref: ScopedThreadRef | null | undefined, )
| 131 | ); |
| 132 | |
| 133 | export function selectThreadDiffPanelSelection( |
| 134 | byThreadKey: Record<string, DiffPanelSelection>, |
| 135 | ref: ScopedThreadRef | null | undefined, |
| 136 | ): DiffPanelSelection { |
| 137 | if (!ref) return DEFAULT_SELECTION; |
| 138 | return byThreadKey[scopedThreadKey(ref)] ?? DEFAULT_SELECTION; |
| 139 | } |
no test coverage detected