MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / close

Method close

packages/vscode-shim/src/api/TabGroupsAPI.ts:48–59  ·  view source on GitHub ↗
(tab: Tab)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

fireMethod · 0.80

Tested by

no test coverage detected