File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/workbench/contrib/chat/browser/widget Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1642,7 +1642,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
16421642 this . inputContainer = dom . $ ( '.chat-edit-input-container' ) ;
16431643 rowContainer . appendChild ( this . inputContainer ) ;
16441644 this . createInput ( this . inputContainer ) ;
1645- this . input . setChatMode ( this . inputPart . currentModeKind ) ;
1645+ this . input . setChatMode ( this . inputPart . currentModeObs . get ( ) . id ) ;
16461646 } else {
16471647 this . inputPart . element . classList . add ( 'editing' ) ;
16481648 }
@@ -1708,7 +1708,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
17081708 const isInput = this . configurationService . getValue < string > ( 'chat.editRequests' ) === 'input' ;
17091709
17101710 if ( ! isInput ) {
1711- this . inputPart . setChatMode ( this . input . currentModeKind ) ;
1711+ this . inputPart . setChatMode ( this . input . currentModeObs . get ( ) . id ) ;
17121712 const currentModel = this . input . selectedLanguageModel ;
17131713 if ( currentModel ) {
17141714 this . inputPart . switchModel ( currentModel . metadata ) ;
You can’t perform that action at this time.
0 commit comments