@@ -115,17 +115,19 @@ async function executeMoveToAction(accessor: ServicesAccessor, moveTo: MoveToNew
115115 const widgetService = accessor . get ( IChatWidgetService ) ;
116116 const editorService = accessor . get ( IEditorService ) ;
117117
118+ const auxiliary = { compact : true , bounds : { width : 800 , height : 640 } } ;
119+
118120 const widget = ( sessionResource ? widgetService . getWidgetBySessionResource ( sessionResource ) : undefined )
119121 ?? widgetService . lastFocusedWidget ;
120122 if ( ! widget || ! widget . viewModel || widget . location !== ChatAgentLocation . Chat ) {
121- await editorService . openEditor ( { resource : ChatEditorInput . getNewEditorUri ( ) , options : { pinned : true , auxiliary : { compact : true , bounds : { width : 640 , height : 640 } } } } , moveTo === MoveToNewLocation . Window ? AUX_WINDOW_GROUP : ACTIVE_GROUP ) ;
123+ await editorService . openEditor ( { resource : ChatEditorInput . getNewEditorUri ( ) , options : { pinned : true , auxiliary } } , moveTo === MoveToNewLocation . Window ? AUX_WINDOW_GROUP : ACTIVE_GROUP ) ;
122124 return ;
123125 }
124126
125127 const existingWidget = widgetService . getWidgetBySessionResource ( widget . viewModel . sessionResource ) ;
126128 if ( ! existingWidget ) {
127129 // Do NOT attempt to open a session that isn't already open since we cannot guarantee its state.
128- await editorService . openEditor ( { resource : ChatEditorInput . getNewEditorUri ( ) , options : { pinned : true , auxiliary : { compact : true , bounds : { width : 640 , height : 640 } } } } , moveTo === MoveToNewLocation . Window ? AUX_WINDOW_GROUP : ACTIVE_GROUP ) ;
130+ await editorService . openEditor ( { resource : ChatEditorInput . getNewEditorUri ( ) , options : { pinned : true , auxiliary } } , moveTo === MoveToNewLocation . Window ? AUX_WINDOW_GROUP : ACTIVE_GROUP ) ;
129131 return ;
130132 }
131133
@@ -135,7 +137,7 @@ async function executeMoveToAction(accessor: ServicesAccessor, moveTo: MoveToNew
135137
136138 await widget . clear ( ) ;
137139
138- const options : IChatEditorOptions = { pinned : true , viewState, auxiliary : { compact : true , bounds : { width : 640 , height : 640 } } } ;
140+ const options : IChatEditorOptions = { pinned : true , viewState, auxiliary } ;
139141 await editorService . openEditor ( { resource : resourceToOpen , options } , moveTo === MoveToNewLocation . Window ? AUX_WINDOW_GROUP : ACTIVE_GROUP ) ;
140142}
141143
0 commit comments