()
| 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 ( |