src/vs/workbench/browser/parts/titlebar/menubarControl.ts/CustomMenubarControl/toActionsArray
class CustomMenubarControl:	private toActionsArray(menu: IMenu): IAction[] {
		const result: IAction[] = [];
		createAndFillInContextMenuActions(menu, { shouldForwardArgs: true }, result);
		return result;
	}