Skip to content

Commit

Permalink
make sure to send undo feedback when cancelling or undoing (#184892)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken authored Jun 12, 2023
1 parent b0b1af1 commit 70dff6d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,10 @@ export class InlineChatController implements IEditorContribution {
}

const changedText = this._activeSession.asChangedText();
if (changedText && this._activeSession?.lastExchange?.response instanceof EditResponse) {
this._activeSession.provider.handleInlineChatResponseFeedback?.(this._activeSession.session, this._activeSession.lastExchange.response.raw, InlineChatResponseFeedbackKind.Undone);

}
this._messages.fire(Message.CANCEL_SESSION);
return changedText;
}
Expand Down

0 comments on commit 70dff6d

Please sign in to comment.