diff --git a/extensions/git-extended/src/common/diff.ts b/extensions/git-extended/src/common/diff.ts index 8df56f3268a891c7aa5b14b2c692ce2ae6db11e0..8f21b6c2ad8791b356dc32b72a03249f7126c5c5 100644 --- a/extensions/git-extended/src/common/diff.ts +++ b/extensions/git-extended/src/common/diff.ts @@ -2,6 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ + import * as path from 'path'; import { getFileContent, writeTmpFile } from './file'; import { GitChangeType, RichFileChange } from './models/file'; @@ -86,7 +87,7 @@ export async function parseDiff(text: string, repository: Repository, parentComm let match = reg.exec(text); let richFileChanges: RichFileChange[] = []; - while(match) { + while (match) { let singleFileDiff = match[0]; let modifyDiffInfo = MODIFY_DIFF_INFO.exec(singleFileDiff); if (modifyDiffInfo) {