(tab: BaseTabComponent, dir: SplitDirection)
| 705 | } |
| 706 | |
| 707 | async splitTab (tab: BaseTabComponent, dir: SplitDirection): Promise<BaseTabComponent|null> { |
| 708 | const newTab = await this.tabsService.duplicate(tab) |
| 709 | if (newTab) { |
| 710 | await this.addTab(newTab, tab, dir) |
| 711 | } |
| 712 | return newTab |
| 713 | } |
| 714 | |
| 715 | /** |
| 716 | * @returns the immediate parent of `tab` |
no test coverage detected