Skip to content

Commit 70dff6d

Browse files
authored
make sure to send undo feedback when cancelling or undoing (microsoft#184892)
1 parent b0b1af1 commit 70dff6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,10 @@ export class InlineChatController implements IEditorContribution {
720720
}
721721

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

726+
}
724727
this._messages.fire(Message.CANCEL_SESSION);
725728
return changedText;
726729
}

0 commit comments

Comments
 (0)