@@ -32,7 +32,7 @@ const getMoveToEditorChatActionDescriptorForViewTitle = (viewId: string, provide
32
32
viewId,
33
33
menu : {
34
34
id : MenuId . ViewTitle ,
35
- when : ContextKeyExpr . and ( ContextKeyExpr . equals ( 'view' , viewId ) ) ,
35
+ when : ContextKeyExpr . equals ( 'view' , viewId ) ,
36
36
order : 0
37
37
} ,
38
38
} ) ;
@@ -56,35 +56,6 @@ export function getMoveToEditorAction(viewId: string, providerId: string) {
56
56
} ;
57
57
}
58
58
59
- const getMoveToSidebarChatActionDescriptorForViewTitle = ( viewId : string , providerId : string ) : Readonly < IAction2Options > & { viewId : string } => ( {
60
- id : `workbench.action.chat.${ providerId } .openInSidebar` ,
61
- title : {
62
- value : localize ( 'chat.openInSidebar.label' , "Open In Sidebar" ) ,
63
- original : 'Open In Sidebar'
64
- } ,
65
- category : CHAT_CATEGORY ,
66
- precondition : CONTEXT_PROVIDER_EXISTS ,
67
- f1 : false ,
68
- viewId,
69
- menu : [ {
70
- id : MenuId . EditorTitle ,
71
- order : 0 ,
72
- when : ContextKeyExpr . and ( ActiveEditorContext . isEqualTo ( ChatEditorInput . EditorID ) ) ,
73
- } ]
74
- } ) ;
75
-
76
- export function getMoveToSidebarAction ( viewId : string , providerId : string ) {
77
- return class MoveToSidebarAction extends Action2 {
78
- constructor ( ) {
79
- super ( getMoveToSidebarChatActionDescriptorForViewTitle ( viewId , providerId ) ) ;
80
- }
81
-
82
- override async run ( accessor : ServicesAccessor , ...args : any [ ] ) {
83
- return moveToSidebar ( accessor ) ;
84
- }
85
- } ;
86
- }
87
-
88
59
async function moveToSidebar ( accessor : ServicesAccessor ) : Promise < void > {
89
60
const viewsService = accessor . get ( IViewsService ) ;
90
61
const editorService = accessor . get ( IEditorService ) ;
@@ -151,7 +122,7 @@ export function registerMoveActions() {
151
122
menu : [ {
152
123
id : MenuId . EditorTitle ,
153
124
order : 0 ,
154
- when : ContextKeyExpr . and ( ActiveEditorContext . isEqualTo ( ChatEditorInput . EditorID ) ) ,
125
+ when : ActiveEditorContext . isEqualTo ( ChatEditorInput . EditorID ) ,
155
126
} ]
156
127
} ) ;
157
128
}
0 commit comments