src/vs/workbench/contrib/offline/browser/offline.contribution.ts/OfflineStatusBarController/constructor
class OfflineStatusBarController:	constructor(
		@IDebugService private readonly debugService: IDebugService,
		@IWorkspaceContextService private readonly contextService: IWorkspaceContextService,
		@IStatusbarService private readonly statusbarService: IStatusbarService
	) {
		Event.any(
			this.disposables.add(new DomEmitter(window, 'online')).event,
			this.disposables.add(new DomEmitter(window, 'offline')).event
		)(this.update, this, this.disposables);

		this.debugService.onDidChangeState(this.update, this, this.disposables);
		this.contextService.onDidChangeWorkbenchState(this.update, this, this.disposables);
		this.update();
	}