Repository: 4ian/GDevelop
File: newIDE/app/src/MainFrame/index.js (JavaScript)

Code before:
              currentProject
            );
          }}
          onExtensionInstalled={onExtensionInstalled}
          onShareProject={() => openShareDialog()}
          isOpen={projectManagerOpen}
          hotReloadPreviewButtonProps={hotReloadPreviewButtonProps}
          resourceManagementProps={resourceManagementProps}
          gamesList={gamesList}
          onOpenHomePage={openHomePage}
          toggleProjectManager={toggleProjectManager}
          mainMenuCallbacks={mainMenuCallbacks}
          buildMainMenuProps={buildMainMenuProps}
        />
      </ProjectManagerDrawer>
      <TabsTitlebar
        hidden={tabsTitleBarAndEditorToolbarHidden}
        toggleProjectManager={toggleProjectManager}
        renderTabs={(onEditorTabHovered, onEditorTabClosed) => (
          <DraggableEditorTabs
            hideLabels={false}
            editorTabs={state.editorTabs}
            onClickTab={(id: number) => _onChangeEditorTab(id)}
            onCloseTab={(editorTab: EditorTab) => {
              // Call onEditorTabClosed before to ensure any tooltip is removed before the tab is closed.
              onEditorTabClosed();
              _onCloseEditorTab(editorTab);
            }}
            onCloseOtherTabs={(editorTab: EditorTab) => {
              // Call onEditorTabClosed before to ensure any tooltip is removed before the tab is closed.
              onEditorTabClosed();
              _onCloseOtherEditorTabs(editorTab);
            }}
            onCloseAll={() => {
              // Call onEditorTabClosed before to ensure any tooltip is removed before the tab is closed.
              onEditorTabClosed();
              _onCloseAllEditorTabs();
            }}
            onTabActivated={(editorTab: EditorTab) =>
              _onEditorTabActivated(editorTab)
            }
            onDropTab={onDropEditorTab}
            onHoverTab={onEditorTabHovered}
          />
        )}
        hasAskAiOpened={hasAskAiOpened}
        onOpenAskAi={openAskAi}
      />
      <Toolbar
        ref={toolbar}
        hidden={tabsTitleBarAndEditorToolbarHidden}

Review comment (suggestion):
Let's name this:
```suggestion
              onEditorTabClosing();
```

to show it's being done (while traditionnally, something that is "ed" is when the thing is finished and it's the very last thing you call)

Code after:
              currentProject
            );
          }}
          onExtensionInstalled={onExtensionInstalled}
          onShareProject={() => openShareDialog()}
          isOpen={projectManagerOpen}
          hotReloadPreviewButtonProps={hotReloadPreviewButtonProps}
          resourceManagementProps={resourceManagementProps}
          gamesList={gamesList}
          onOpenHomePage={openHomePage}
          toggleProjectManager={toggleProjectManager}
          mainMenuCallbacks={mainMenuCallbacks}
          buildMainMenuProps={buildMainMenuProps}
        />
      </ProjectManagerDrawer>
      <TabsTitlebar
        hidden={tabsTitleBarAndEditorToolbarHidden}
        toggleProjectManager={toggleProjectManager}
        renderTabs={(onEditorTabHovered, onEditorTabClosing) => (
          <DraggableEditorTabs
            hideLabels={false}
            editorTabs={state.editorTabs}
            onClickTab={(id: number) => _onChangeEditorTab(id)}
            onCloseTab={(editorTab: EditorTab) => {
              // Call onEditorTabClosing before to ensure any tooltip is removed before the tab is closed.
              onEditorTabClosing();
              _onCloseEditorTab(editorTab);
            }}
            onCloseOtherTabs={(editorTab: EditorTab) => {
              // Call onEditorTabClosing before to ensure any tooltip is removed before the tab is closed.
              onEditorTabClosing();
              _onCloseOtherEditorTabs(editorTab);
            }}
            onCloseAll={() => {
              // Call onEditorTabClosing before to ensure any tooltip is removed before the tab is closed.
              onEditorTabClosing();
              _onCloseAllEditorTabs();
            }}
            onTabActivated={(editorTab: EditorTab) =>
              _onEditorTabActivated(editorTab)
            }
            onDropTab={onDropEditorTab}
            onHoverTab={(
              editorTab: ?EditorTab,
              options: {| isLabelTruncated: boolean |}
            ) => onEditorTabHovered(editorTab, options)}
          />
        )}
        hasAskAiOpened={hasAskAiOpened}
        onOpenAskAi={openAskAi}
      />