Skip to content

Commit d9d4fc8

Browse files
authored
reset edit when reseting snapshot to current document (microsoft#232962)
fixes microsoft/vscode-copilot#10103
1 parent ba7383e commit d9d4fc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ export class ChatEditingModifiedFileEntry extends Disposable implements IModifie
346346
}
347347

348348
this.docSnapshot.setValue(this.doc.createSnapshot());
349+
this._edit = OffsetEdit.empty;
349350
this._stateObs.set(WorkingSetEntryState.Accepted, transaction);
350351
await this.collapse(transaction);
351352
this._notifyAction('accepted');

0 commit comments

Comments
 (0)