Skip to content

Commit

Permalink
group bulk edit preview by document, #97881
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed May 26, 2020
1 parent 667142d commit 553a11c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vs/workbench/contrib/bulkEdit/browser/bulkEditPreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { IIdentifiedSingleEditOperation } from 'vs/editor/common/model';
import { ConflictDetector } from 'vs/workbench/services/bulkEdit/browser/conflicts';
import { ResourceMap } from 'vs/base/common/map';
import { localize } from 'vs/nls';
import { exturi } from 'vs/base/common/resources';

export class CheckedStates<T extends object> {

Expand Down Expand Up @@ -209,13 +210,13 @@ export class BulkFileOperations {
}

const insert = (uri: URI, map: Map<string, BulkFileOperation>) => {
let key = uri.toString();
let key = exturi.getComparisonKey(uri, true);
let operation = map.get(key);

// rename
if (!operation && newToOldUri.has(uri)) {
uri = newToOldUri.get(uri)!;
key = uri.toString();
key = exturi.getComparisonKey(uri, true);
operation = map.get(key);
}

Expand Down

0 comments on commit 553a11c

Please sign in to comment.