Skip to content

Commit 04b99c9

Browse files
authored
Recompute cell diff info when there are no more changes (#245088)
1 parent c724a82 commit 04b99c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ export class ChatEditingModifiedNotebookEntry extends AbstractChatEditingModifie
259259
if (currentState === WorkingSetEntryState.Modified && didResetToOriginalContent) {
260260
this._stateObs.set(WorkingSetEntryState.Rejected, undefined);
261261
this.updateCellDiffInfo([], undefined);
262+
this.initializeModelsFromDiff();
262263
return;
263264
}
264265

@@ -397,6 +398,7 @@ export class ChatEditingModifiedNotebookEntry extends AbstractChatEditingModifie
397398
if (currentState === WorkingSetEntryState.Modified && didResetToOriginalContent) {
398399
this._stateObs.set(WorkingSetEntryState.Rejected, undefined);
399400
this.updateCellDiffInfo([], undefined);
401+
this.initializeModelsFromDiff();
400402
return;
401403
}
402404
}

0 commit comments

Comments
 (0)