Skip to content

Commit

Permalink
Update extensions/git/src/commands.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno authored Sep 9, 2020
1 parent bec65e8 commit d9d314e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions extensions/git/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1056,9 +1056,8 @@ export class CommandCenter {
}

const selectionsBeforeRevert = textEditor.selections;
await this._revertChanges(textEditor, selectedChanges).then(() => {
textEditor.selections = selectionsBeforeRevert;
});
await this._revertChanges(textEditor, selectedChanges);
textEditor.selections = selectionsBeforeRevert;
}

private async _revertChanges(textEditor: TextEditor, changes: LineChange[]): Promise<void> {
Expand Down

0 comments on commit d9d314e

Please sign in to comment.