File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/vs/workbench/contrib/chat Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -693,7 +693,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
693
693
const currentMode = this . _currentModeObservable . get ( ) ;
694
694
const validMode = this . chatModeService . findModeById ( currentMode . id ) ;
695
695
if ( ! validMode ) {
696
- this . setChatMode2 ( ChatMode . Agent ) ;
696
+ this . setChatMode ( ChatModeKind . Agent ) ;
697
697
return ;
698
698
}
699
699
}
Original file line number Diff line number Diff line change @@ -160,7 +160,12 @@ export class ChatModeService extends Disposable implements IChatModeService {
160
160
}
161
161
162
162
getModes ( ) : { builtin : readonly IChatMode [ ] ; custom : readonly IChatMode [ ] } {
163
- return { builtin : this . getBuiltinModes ( ) , custom : Array . from ( this . _customModeInstances . values ( ) ) } ;
163
+ return {
164
+ builtin : this . getBuiltinModes ( ) ,
165
+ custom : this . chatAgentService . hasToolsAgent ?
166
+ Array . from ( this . _customModeInstances . values ( ) ) :
167
+ [ ]
168
+ } ;
164
169
}
165
170
166
171
private getFlatModes ( ) : IChatMode [ ] {
You can’t perform that action at this time.
0 commit comments