Skip to content

Commit

Permalink
fix: unfreezing codelens if auto_submit is set to false
Browse files Browse the repository at this point in the history
  • Loading branch information
alashchev17 committed Oct 24, 2024
1 parent ad47698 commit ec764ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/codeLens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
}
Expand Down

0 comments on commit ec764ed

Please sign in to comment.