MCPcopy
hub / github.com/coder/mux / closeTerminalWindow

Method closeTerminalWindow

src/desktop/terminalWindowManager.ts:137–147  ·  view source on GitHub ↗

* Close all terminal windows for a workspace

(workspaceId: string)

Source from the content-addressed store, hash-verified

135 * Close all terminal windows for a workspace
136 */
137 closeTerminalWindow(workspaceId: string): void {
138 const windowSet = this.windows.get(workspaceId);
139 if (windowSet) {
140 for (const window of windowSet) {
141 if (!window.isDestroyed()) {
142 window.close();
143 }
144 }
145 this.windows.delete(workspaceId);
146 }
147 }
148
149 /**
150 * Close all terminal windows for all workspaces

Callers 1

closeWindowMethod · 0.80

Calls 3

getMethod · 0.65
closeMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected