MCPcopy Create free account
hub / github.com/material-shell/material-shell / close

Method close

src/layout/msWorkspace/msWorkspace.ts:266–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264 }
265
266 close() {
267 logAssert(!this.destroyed, 'Workspace is destroyed');
268 this.closing = true;
269 Promise.all(
270 this.msWindowList.map((msWindow) => {
271 return msWindow.kill();
272 })
273 ).then((_params) => {
274 this.closing = false;
275 this.emit('readyToBeClosed');
276 });
277 }
278
279 async addMsWindow(msWindow: MsWindow, focus = false, insert = false) {
280 if (

Callers

nothing calls this directly

Calls 4

logAssertFunction · 0.90
mapMethod · 0.65
killMethod · 0.65
emitMethod · 0.65

Tested by

no test coverage detected