(editor: number)
| 1123 | } |
| 1124 | |
| 1125 | onEditorClose(editor: number): void { |
| 1126 | if (editor === this.sourceEditorId) { |
| 1127 | // We can't immediately close as an outer loop somewhere in GoldenLayout is iterating over |
| 1128 | // the hierarchy. We can't modify while it's being iterated over. |
| 1129 | this.close(); |
| 1130 | _.defer(self => { |
| 1131 | self.container.close(); |
| 1132 | }, this); |
| 1133 | } |
| 1134 | } |
| 1135 | |
| 1136 | override getCurrentState(): ExecutorState & PaneState { |
| 1137 | const state: ExecutorState & PaneState = { |