src/vs/platform/windows/electron-main/windowImpl.ts/CodeWindow/isDocumentEdited
class CodeWindow:	isDocumentEdited(): boolean {
		if (isMacintosh) {
			return this._win.isDocumentEdited();
		}

		return !!this.documentEdited;
	}