From 8eb1593dafa2c7230a545e62d25af209ea9dd921 Mon Sep 17 00:00:00 2001 From: alashchev17 Date: Fri, 18 Oct 2024 13:45:55 +0200 Subject: [PATCH] fix: cleaning state up if codelens instruction doesn't contain message --- src/codeLens.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/codeLens.ts b/src/codeLens.ts index 14b75d79..4f6011a7 100644 --- a/src/codeLens.ts +++ b/src/codeLens.ts @@ -141,6 +141,7 @@ export async function code_lens_execute(code_lens: string, range: any) { let text = vscode.window.activeTextEditor!.document.getText(block_range); if (messages.length === 0) { + global.is_chat_streaming = false; vscode.commands.executeCommand('refactaicmd.callChat', ''); return; }