@@ -57,9 +57,6 @@ import { ThemeIcon } from '../../../../base/common/themables.js';
5757import { IChatEditorOptions } from './chatEditor.js' ;
5858import { ChatSessionUri } from '../common/chatUri.js' ;
5959import { coalesce } from '../../../../base/common/arrays.js' ;
60- import { Action2 , registerAction2 } from '../../../../platform/actions/common/actions.js' ;
61- import { ServicesAccessor } from '../../../../platform/instantiation/common/instantiation.js' ;
62- import { INotificationService } from '../../../../platform/notification/common/notification.js' ;
6360
6461export const VIEWLET_ID = 'workbench.view.chat.sessions' ;
6562
@@ -1025,45 +1022,3 @@ MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
10251022 when : ContextKeyExpr . equals ( 'view' , `${ VIEWLET_ID } .local` ) ,
10261023} ) ;
10271024
1028- // Test menu contribution for chat session items
1029- MenuRegistry . appendMenuItem ( MenuId . ChatSessionsMenu , {
1030- command : {
1031- id : 'workbench.action.chat.testSessionCommand' ,
1032- title : nls . localize2 ( 'chatSession.testCommand' , "Test Session Command" ) ,
1033- icon : Codicon . gear
1034- } ,
1035- group : 'inline' ,
1036- order : 1 ,
1037- when : ContextKeyExpr . and (
1038- ChatContextKeys . sessionType . isEqualTo ( 'local' ) ,
1039- ChatContextKeys . sessionId . notEqualsTo ( '' )
1040- ) ,
1041- } ) ;
1042-
1043- // Test command implementation for chat session items
1044- class TestChatSessionCommand extends Action2 {
1045- constructor ( ) {
1046- super ( {
1047- id : 'workbench.action.chat.testSessionCommand' ,
1048- title : nls . localize2 ( 'chatSession.testCommand' , "Test Session Command" ) ,
1049- f1 : false , // Don't show in command palette
1050- } ) ;
1051- }
1052-
1053- async run ( accessor : ServicesAccessor , session ?: IChatSessionItem ) : Promise < void > {
1054- const notificationService = accessor . get ( INotificationService ) ;
1055-
1056- if ( session ) {
1057- notificationService . info (
1058- nls . localize ( 'chatSession.testCommandExecuted' , "Test command executed for session: {0} (ID: {1})" , session . label , session . id )
1059- ) ;
1060- } else {
1061- notificationService . info (
1062- nls . localize ( 'chatSession.testCommandNoSession' , "Test command executed without session context" )
1063- ) ;
1064- }
1065- }
1066- }
1067-
1068- registerAction2 ( TestChatSessionCommand ) ;
1069-
0 commit comments