src/vs/workbench/browser/parts/statusbar/statusbarPart.ts/StatusbarPart/registerListeners
class StatusbarPart:	private registerListeners(): void {

		// Entry visibility changes
		this._register(this.onDidChangeEntryVisibility(() => this.updateCompactEntries()));

		// Workbench state changes
		this._register(this.contextService.onDidChangeWorkbenchState(() => this.updateStyles()));
	}