We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0975639 commit 129eabdCopy full SHA for 129eabd
src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.ts
@@ -224,6 +224,9 @@ class ToggleChatModeAction extends Action2 {
224
context.chatWidget.input.setChatMode2(switchToMode);
225
226
if (chatModeCheck.needToClearSession) {
227
+ if (context.chatWidget.viewModel?.editing) {
228
+ context.chatWidget.input.dispose();
229
+ }
230
await commandService.executeCommand(ACTION_ID_NEW_CHAT);
231
}
232
0 commit comments