src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts/DirtyDiffWidget/_getActionBarOptions
class DirtyDiffWidget:	protected override _getActionBarOptions(): IActionBarOptions {
		const actionRunner = new DiffActionRunner();

		// close widget on successful action
		actionRunner.onDidRun(e => {
			if (!(e.action instanceof UIEditorAction) && !e.error) {
				this.dispose();
			}
		});

		return {
			...super._getActionBarOptions(),
			actionRunner
		};
	}