File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1130,15 +1130,15 @@ export class ChatWidget extends Disposable implements IChatWidget {
1130
1130
ChatContextKeys . currentlyEditing . bindTo ( editedRequest . contextKeyService ) . set ( false ) ;
1131
1131
}
1132
1132
1133
- this . inputPart . setChatMode ( this . inlineInputPart . currentModeKind ) ;
1134
- const currentModel = this . inlineInputPart . selectedLanguageModel ;
1135
- if ( currentModel ) {
1136
- this . inputPart . switchModel ( currentModel . metadata ) ;
1137
- }
1138
-
1139
1133
const isInput = this . configurationService . getValue < string > ( 'chat.editRequests' ) === 'input' ;
1140
1134
1141
1135
if ( ! isInput ) {
1136
+ this . inputPart . setChatMode ( this . input . currentModeKind ) ;
1137
+ const currentModel = this . input . selectedLanguageModel ;
1138
+ if ( currentModel ) {
1139
+ this . inputPart . switchModel ( currentModel . metadata ) ;
1140
+ }
1141
+
1142
1142
this . inputPart ?. toggleChatInputOverlay ( false ) ;
1143
1143
try {
1144
1144
if ( editedRequest ?. rowContainer && editedRequest . rowContainer . contains ( this . inputContainer ) ) {
You can’t perform that action at this time.
0 commit comments