mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-14 12:11:43 +01:00
make sure to handle edit input when changing modes (#252266)
This commit is contained in:
@@ -224,6 +224,9 @@ class ToggleChatModeAction extends Action2 {
|
||||
context.chatWidget.input.setChatMode2(switchToMode);
|
||||
|
||||
if (chatModeCheck.needToClearSession) {
|
||||
if (context.chatWidget.viewModel?.editing) {
|
||||
context.chatWidget.input.dispose();
|
||||
}
|
||||
await commandService.executeCommand(ACTION_ID_NEW_CHAT);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user