src/vs/workbench/browser/parts/compositeBar.ts/CompositeBar/areBadgesEnabled
class CompositeBar:	areBadgesEnabled(compositeId: string): boolean {
		const item = this.model?.findItem(compositeId);
		// Old restored views can have undefined badge enablement
		if (item && item.badgeEnabled === undefined) {
			item.badgeEnabled = true;
		}
		return item?.badgeEnabled;
	}