@@ -67,6 +67,7 @@ import { ILanguageModelToolsService } from '../../common/languageModelToolsServi
6767import { ChatViewId , IChatWidget , IChatWidgetService , showChatView , showCopilotView } from '../chat.js' ;
6868import { IChatEditorOptions } from '../chatEditor.js' ;
6969import { ChatEditorInput , shouldShowClearEditingSessionConfirmation , showClearEditingSessionConfirmation } from '../chatEditorInput.js' ;
70+ import { VIEWLET_ID } from '../chatSessions.js' ;
7071import { ChatViewPane } from '../chatViewPane.js' ;
7172import { convertBufferToScreenshotVariable } from '../contrib/screenshot.js' ;
7273import { clearChatEditor } from './chatClear.js' ;
@@ -910,7 +911,13 @@ export function registerChatActions() {
910911 title : localize2 ( 'chatSessions.openNewChatInNewWindow' , 'Open New Chat in New Window' ) ,
911912 f1 : true ,
912913 category : CHAT_CATEGORY ,
913- precondition : ChatContextKeys . enabled
914+ precondition : ChatContextKeys . enabled ,
915+ menu : {
916+ id : MenuId . ViewTitle ,
917+ group : 'submenu' ,
918+ order : 1 ,
919+ when : ContextKeyExpr . equals ( 'view' , `${ VIEWLET_ID } .local` ) ,
920+ }
914921 } ) ;
915922 }
916923
@@ -933,7 +940,13 @@ export function registerChatActions() {
933940 title : localize2 ( 'chatSessions.openNewChatInNewMaximizedWindow' , 'Open New Chat in Maximized Window' ) ,
934941 f1 : true ,
935942 category : CHAT_CATEGORY ,
936- precondition : ChatContextKeys . enabled
943+ precondition : ChatContextKeys . enabled ,
944+ menu : {
945+ id : MenuId . ViewTitle ,
946+ group : 'submenu' ,
947+ order : 1 ,
948+ when : ContextKeyExpr . equals ( 'view' , `${ VIEWLET_ID } .local` ) ,
949+ }
937950 } ) ;
938951 }
939952
@@ -956,7 +969,13 @@ export function registerChatActions() {
956969 title : localize2 ( 'chatSessions.openNewChatInSideBar' , 'Open New Chat in Side Bar' ) ,
957970 f1 : true ,
958971 category : CHAT_CATEGORY ,
959- precondition : ChatContextKeys . enabled
972+ precondition : ChatContextKeys . enabled ,
973+ menu : {
974+ id : MenuId . ViewTitle ,
975+ group : 'submenu' ,
976+ order : 1 ,
977+ when : ContextKeyExpr . equals ( 'view' , `${ VIEWLET_ID } .local` ) ,
978+ }
960979 } ) ;
961980 }
962981
0 commit comments