src/vs/workbench/browser/parts/editor/textDiffEditor.ts/TextDiffEditor/isFileBinaryError
class TextDiffEditor:	private isFileBinaryError(error: Error | Error[]): boolean {
		if (Array.isArray(error)) {
			const errors = <Error[]>error;

			return errors.some(error => this.isFileBinaryError(error));
		}

		return (<TextFileOperationError>error).textFileOperationResult === TextFileOperationResult.FILE_IS_BINARY;
	}