Skip to content

Commit

Permalink
use arrow for renames, #89504
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Feb 7, 2020
1 parent cde8f2a commit 0ebabc2
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/vs/workbench/contrib/bulkEdit/browser/bulkEditTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,17 +447,15 @@ class FileElementTemplate {
}));

if (element.edit.type & BulkFileOperationType.Rename && element.edit.newUri) {
// rename: NEW NAME (old name)
this._label.setFile(element.edit.newUri, {
matches: createMatches(score),
fileKind: FileKind.FILE,
fileDecorations: { colors: true, badges: false },
// rename: oldName → newName
this._label.setResource({
resource: element.edit.uri,
name: localize('rename.label', "{0} → {1}", this._labelService.getUriLabel(element.edit.uri, { relative: true }), this._labelService.getUriLabel(element.edit.newUri, { relative: true })),
}, {
fileDecorations: { colors: true, badges: false }
});

this._details.innerText = localize(
'detail.rename', "(renaming from {0})",
this._labelService.getUriLabel(element.edit.uri, { relative: true })
);
this._details.innerText = localize('detail.rename', "(renaming)");

} else {
// create, delete, edit: NAME
Expand Down

0 comments on commit 0ebabc2

Please sign in to comment.