From ec764ed62f4a976dccee21de1d222f11295a5189 Mon Sep 17 00:00:00 2001 From: alashchev17 Date: Thu, 24 Oct 2024 20:35:19 +0200 Subject: [PATCH] fix: unfreezing codelens if auto_submit is set to false --- src/codeLens.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/codeLens.ts b/src/codeLens.ts index 6390702d..d569347a 100644 --- a/src/codeLens.ts +++ b/src/codeLens.ts @@ -157,9 +157,15 @@ export async function code_lens_execute(code_lens: string, range: any) { vscode.commands.executeCommand('refactaicmd.callChat', ''); } sendCodeLensToChat(messages, relative_path, text, auto_submit); + if (!auto_submit) { + global.is_chat_streaming = false; + } } else { vscode.commands.executeCommand('refactaicmd.callChat', ''); sendCodeLensToChat(messages, relative_path, text, auto_submit); + if (!auto_submit) { + global.is_chat_streaming = false; + } } } }