Skip to content

Commit

Permalink
reset edit when reseting snapshot to current document (microsoft#232962)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken authored Nov 4, 2024
1 parent ba7383e commit d9d4fc8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ export class ChatEditingModifiedFileEntry extends Disposable implements IModifie
}

this.docSnapshot.setValue(this.doc.createSnapshot());
this._edit = OffsetEdit.empty;
this._stateObs.set(WorkingSetEntryState.Accepted, transaction);
await this.collapse(transaction);
this._notifyAction('accepted');
Expand Down

0 comments on commit d9d4fc8

Please sign in to comment.