( direction: IOpenFileCommand["direction"], fallback: "vertical" | undefined = undefined )
| 3 | import { NewTabDirection } from "../../types/newTabDirection"; |
| 4 | |
| 5 | function getSplitDirection( |
| 6 | direction: IOpenFileCommand["direction"], |
| 7 | fallback: "vertical" | undefined = undefined |
| 8 | ): "horizontal" | "vertical" | undefined { |
| 9 | if (direction === NewTabDirection.horizontal) return "horizontal"; |
| 10 | if (direction === NewTabDirection.vertical) return "vertical"; |
| 11 | return fallback; |
| 12 | } |
| 13 | |
| 14 | function createOpenFileOptions( |
| 15 | location: NonNullable<OpenFileOptions["location"]>, |
no outgoing calls
no test coverage detected