From 4bc3583c4e20ff3e24a17f387377503ff155eaea Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 24 Jan 2024 13:48:40 +0100 Subject: [PATCH] handle `rerun` message during make_request state (#203333) handle `rerun` message during make_request state, fixes https://github.com/microsoft/vscode-copilot/issues/3650 --- .../contrib/inlineChat/browser/inlineChatController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts b/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts index bdc49d917ef..9fb003a71d6 100644 --- a/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts +++ b/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts @@ -716,7 +716,7 @@ export class InlineChatController implements IEditorContribution { return State.PAUSE; } else if (message & Message.ACCEPT_SESSION) { return State.ACCEPT; - } else if (message & Message.ACCEPT_INPUT) { + } else if (message & (Message.ACCEPT_INPUT | Message.RERUN_INPUT)) { return State.MAKE_REQUEST; } else { return State.APPLY_RESPONSE;