File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1620,15 +1620,16 @@ class SessionsViewPane extends ViewPane {
16201620 pinned : true ,
16211621 // Add a marker to indicate this session was opened from history
16221622 ignoreInView : true ,
1623+ preserveFocus : true ,
16231624 } ;
16241625 await this . editorService . openEditor ( { resource : ChatEditorInput . getNewEditorUri ( ) , options } ) ;
16251626 } else {
16261627 // For external provider sessions, use ChatSessionUri approach
16271628 const providerType = sessionWithProvider . provider . chatSessionType ;
16281629 const options : IChatEditorOptions = {
16291630 pinned : true ,
1630- preferredTitle : truncate ( element . label , 20 )
1631-
1631+ preferredTitle : truncate ( element . label , 20 ) ,
1632+ preserveFocus : true ,
16321633 } ;
16331634 await this . editorService . openEditor ( {
16341635 resource : ChatSessionUri . forSession ( providerType , sessionId ) ,
@@ -1663,6 +1664,7 @@ class SessionsViewPane extends ViewPane {
16631664 pinned : true ,
16641665 ignoreInView : true ,
16651666 preferredTitle : truncate ( element . label , 20 ) ,
1667+ preserveFocus : true ,
16661668 } ;
16671669 await this . editorService . openEditor ( {
16681670 resource : ChatSessionUri . forSession ( providerType , sessionId ) ,
You can’t perform that action at this time.
0 commit comments