src/vs/workbench/services/workingCopy/common/workingCopyService.ts/WorkingCopyService/hasDirty
class WorkingCopyService:	get hasDirty(): boolean {
		for (const workingCopy of this._workingCopies) {
			if (workingCopy.isDirty()) {
				return true;
			}
		}

		return false;
	}