({
threadRef,
filePath,
activeCwd,
openInEditor,
}: OpenDiffFilePrimaryActionInput)
| 11 | } |
| 12 | |
| 13 | export function openDiffFilePrimaryAction({ |
| 14 | threadRef, |
| 15 | filePath, |
| 16 | activeCwd, |
| 17 | openInEditor, |
| 18 | }: OpenDiffFilePrimaryActionInput): void { |
| 19 | if (threadRef) { |
| 20 | useRightPanelStore.getState().openFile(threadRef, filePath); |
| 21 | return; |
| 22 | } |
| 23 | |
| 24 | openInEditor(activeCwd ? resolvePathLinkTarget(filePath, activeCwd) : filePath); |
| 25 | } |
no test coverage detected