src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts/DirtyDiffWorkbenchController/enable
class DirtyDiffWorkbenchController:	private enable(): void {
		if (this.enabled) {
			this.disable();
		}

		this.transientDisposables.add(Event.any(this.editorService.onDidCloseEditor, this.editorService.onDidVisibleEditorsChange)(() => this.onEditorsChanged()));
		this.onEditorsChanged();
		this.enabled = true;
	}