File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1130,15 +1130,17 @@ 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
- }
1133
+
1138
1134
1139
1135
const isInput = this . configurationService . getValue < string > ( 'chat.editRequests' ) === 'input' ;
1140
1136
1141
1137
if ( ! isInput ) {
1138
+ this . inputPart . setChatMode ( this . inlineInputPart . currentModeKind ) ;
1139
+ const currentModel = this . inlineInputPart . selectedLanguageModel ;
1140
+ if ( currentModel ) {
1141
+ this . inputPart . switchModel ( currentModel . metadata ) ;
1142
+ }
1143
+
1142
1144
this . inputPart ?. toggleChatInputOverlay ( false ) ;
1143
1145
try {
1144
1146
if ( editedRequest ?. rowContainer && editedRequest . rowContainer . contains ( this . inputContainer ) ) {
You can’t perform that action at this time.
0 commit comments