@@ -49,6 +49,7 @@ import { ChatEditorInput } from '../chatEditorInput.js';
49
49
import { ChatViewPane } from '../chatViewPane.js' ;
50
50
import { convertBufferToScreenshotVariable } from '../contrib/screenshot.js' ;
51
51
import { clearChatEditor } from './chatClear.js' ;
52
+ import { ICommandService } from '../../../../../platform/commands/common/commands.js' ;
52
53
53
54
export const CHAT_CATEGORY = localize2 ( 'chat.category' , 'Chat' ) ;
54
55
export const CHAT_OPEN_ACTION_ID = 'workbench.action.chat.open' ;
@@ -506,6 +507,27 @@ export function registerChatActions() {
506
507
extensionsWorkbenchService . openSearch ( `@feature:${ CopilotUsageExtensionFeatureId } ` ) ;
507
508
}
508
509
} ) ;
510
+
511
+ registerAction2 ( class ConfigureCopilotCompletions extends Action2 {
512
+
513
+ constructor ( ) {
514
+ super ( {
515
+ id : 'workbench.action.chat.configureCodeCompletions' ,
516
+ title : localize2 ( 'configureCompletions' , "Configure Code Completions..." ) ,
517
+ precondition : ChatContextKeys . enabled ,
518
+ menu : {
519
+ id : MenuId . ChatCommandCenter ,
520
+ group : 'f_completions' ,
521
+ order : 10 ,
522
+ }
523
+ } ) ;
524
+ }
525
+
526
+ override async run ( accessor : ServicesAccessor ) : Promise < void > {
527
+ const commandService = accessor . get ( ICommandService ) ;
528
+ commandService . executeCommand ( 'github.copilot.toggleStatusMenu' ) ;
529
+ }
530
+ } ) ;
509
531
}
510
532
511
533
export function stringifyItem ( item : IChatRequestViewModel | IChatResponseViewModel , includeName = true ) : string {
0 commit comments