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 {
11301130 ChatContextKeys . currentlyEditing . bindTo ( editedRequest . contextKeyService ) . set ( false ) ;
11311131 }
11321132
1133- this . inputPart . setChatMode ( this . inlineInputPart . currentModeKind ) ;
1134- const currentModel = this . inlineInputPart . selectedLanguageModel ;
1135- if ( currentModel ) {
1136- this . inputPart . switchModel ( currentModel . metadata ) ;
1137- }
1138-
11391133 const isInput = this . configurationService . getValue < string > ( 'chat.editRequests' ) === 'input' ;
11401134
11411135 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+
11421142 this . inputPart ?. toggleChatInputOverlay ( false ) ;
11431143 try {
11441144 if ( editedRequest ?. rowContainer && editedRequest . rowContainer . contains ( this . inputContainer ) ) {
You can’t perform that action at this time.
0 commit comments