src/vs/workbench/browser/parts/titlebar/menubarControl.ts/CustomMenubarControl/currentCompactMenuMode
class CustomMenubarControl:	private get currentCompactMenuMode(): Direction | undefined {
		if (this.currentMenubarVisibility !== 'compact') {
			return undefined;
		}

		const currentSidebarLocation = this.configurationService.getValue<string>('workbench.sideBar.location');
		return currentSidebarLocation === 'right' ? Direction.Left : Direction.Right;
	}