(tab: Tab)
| 46 | } |
| 47 | |
| 48 | async close(tab: Tab): Promise<boolean> { |
| 49 | // Find and remove the tab from all groups |
| 50 | for (const group of this._tabGroups) { |
| 51 | const index = group.tabs.indexOf(tab) |
| 52 | if (index !== -1) { |
| 53 | group.tabs.splice(index, 1) |
| 54 | this._onDidChangeTabs.fire() |
| 55 | return true |
| 56 | } |
| 57 | } |
| 58 | return false |
| 59 | } |
| 60 | |
| 61 | // Internal method to simulate tab changes for CLI |
| 62 | _simulateTabChange(): void { |