diff --git a/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.ts b/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.ts index e7f1b19a6ae5b..bf5fd42aefe31 100644 --- a/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.ts +++ b/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.ts @@ -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');