@@ -16,14 +16,13 @@ import { ContextKeyExpr } from '../../../../../platform/contextkey/common/contex
16
16
import { IDialogService } from '../../../../../platform/dialogs/common/dialogs.js' ;
17
17
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js' ;
18
18
import { KeybindingWeight } from '../../../../../platform/keybinding/common/keybindingsRegistry.js' ;
19
- import { IViewsService } from '../../../../services/views/common/viewsService.js' ;
20
19
import { ChatContextKeys } from '../../common/chatContextKeys.js' ;
21
20
import { chatVariableLeader } from '../../common/chatParserTypes.js' ;
22
21
import { IChatService } from '../../common/chatService.js' ;
23
22
import { ChatAgentLocation , ChatConfiguration , ChatMode , validateChatMode } from '../../common/constants.js' ;
24
23
import { ILanguageModelChatMetadata } from '../../common/languageModels.js' ;
25
24
import { ILanguageModelToolsService } from '../../common/languageModelToolsService.js' ;
26
- import { IChatWidget , IChatWidgetService , showChatView } from '../chat.js' ;
25
+ import { IChatWidget , IChatWidgetService } from '../chat.js' ;
27
26
import { getEditingSessionContext } from '../chatEditing/chatEditingActions.js' ;
28
27
import { ACTION_ID_NEW_CHAT , CHAT_CATEGORY , handleCurrentEditingSession , handleModeSwitch } from './chatActions.js' ;
29
28
@@ -243,7 +242,7 @@ class OpenModelPickerAction extends Action2 {
243
242
id : OpenModelPickerAction . ID ,
244
243
title : localize2 ( 'interactive.openModelPicker.label' , "Open Model Picker" ) ,
245
244
category : CHAT_CATEGORY ,
246
- f1 : true ,
245
+ f1 : false ,
247
246
keybinding : {
248
247
primary : KeyMod . CtrlCmd | KeyMod . Alt | KeyCode . Period ,
249
248
weight : KeybindingWeight . WorkbenchContrib ,
@@ -269,10 +268,7 @@ class OpenModelPickerAction extends Action2 {
269
268
270
269
override async run ( accessor : ServicesAccessor , ...args : any [ ] ) : Promise < void > {
271
270
const widgetService = accessor . get ( IChatWidgetService ) ;
272
- let widget = widgetService . lastFocusedWidget ;
273
- if ( ! widget || widget . location === ChatAgentLocation . Panel ) {
274
- widget = await showChatView ( accessor . get ( IViewsService ) ) ;
275
- }
271
+ const widget = widgetService . lastFocusedWidget ;
276
272
if ( widget ) {
277
273
widget . input . openModelPicker ( ) ;
278
274
}
0 commit comments