Perform a different action on Main and Bottom Panel doubleClick event

There is a double click event attached to main and bottom panel TabBars which maximizes the widget area, like here:


I need the other functionalities of the TabBars as such but need to perform a different action on the double click event. How can I extend this TabBarRenderer class and override this protected method for my custom implementation logic? TIA.

[original thread by rhendricks]

You will need to rebind TabBarRendererFactory: https://github.com/eclipse-theia/theia/blob/c99cc1d574864d3ef4049775645313032b36b66d/packages/core/src/browser/frontend-application-module.ts#L144-L149