Skip to content

Commit 75c9920

Browse files
authored
undo changes when getting an error response (microsoft#210800)
fixes microsoft/vscode-copilot#5001
1 parent 51da365 commit 75c9920

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ export class InlineChatController implements IEditorContribution {
813813
// show error
814814
if (!response.isCancellation) {
815815
this._zone.value.widget.updateStatus(response.message, { classes: ['error'] });
816+
this._strategy?.cancel();
816817
}
817818

818819
} else if (response instanceof ReplyResponse) {

0 commit comments

Comments
 (0)