src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts/DirtyDiffController/getChanges
class DirtyDiffController:	getChanges(): IChange[] {
		if (!this.modelRegistry) {
			return [];
		}
		if (!this.editor.hasModel()) {
			return [];
		}

		const model = this.modelRegistry.getModel(this.editor.getModel());

		if (!model) {
			return [];
		}

		return model.changes;
	}