src/vs/workbench/browser/parts/titlebar/menubarControl.ts/CustomMenubarControl/currentCompactMenuMode
class CustomMenubarControl:	private get currentCompactMenuMode(): Direction | undefined {
		if (this.currentMenubarVisibility !== 'compact') {
			// With the command center enabled, use compact menu in title bar and flow to the right
			if (this.currentCommandCenterEnabled) {
				return Direction.Down;
			}

			return undefined;
		}

		// Menu bar lives in activity bar and should flow based on its location
		const currentSidebarLocation = this.configurationService.getValue<string>('workbench.sideBar.location');
		return currentSidebarLocation === 'right' ? Direction.Left : Direction.Right;
	}