MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / onEditorClose

Method onEditorClose

static/panes/executor.ts:1125–1134  ·  view source on GitHub ↗
(editor: number)

Source from the content-addressed store, hash-verified

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 = {

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected