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 @@ -1690,15 +1690,16 @@ class SessionsViewPane extends ViewPane {
16901690 pinned : true ,
16911691 // Add a marker to indicate this session was opened from history
16921692 ignoreInView : true ,
1693+ preserveFocus : true ,
16931694 } ;
16941695 await this . editorService . openEditor ( { resource : ChatEditorInput . getNewEditorUri ( ) , options } ) ;
16951696 } else {
16961697 // For external provider sessions, use ChatSessionUri approach
16971698 const providerType = sessionWithProvider . provider . chatSessionType ;
16981699 const options : IChatEditorOptions = {
16991700 pinned : true ,
1700- preferredTitle : truncate ( element . label , 20 )
1701-
1701+ preferredTitle : truncate ( element . label , 20 ) ,
1702+ preserveFocus : true ,
17021703 } ;
17031704 await this . editorService . openEditor ( {
17041705 resource : ChatSessionUri . forSession ( providerType , sessionId ) ,
@@ -1733,6 +1734,7 @@ class SessionsViewPane extends ViewPane {
17331734 pinned : true ,
17341735 ignoreInView : true ,
17351736 preferredTitle : truncate ( element . label , 20 ) ,
1737+ preserveFocus : true ,
17361738 } ;
17371739 await this . editorService . openEditor ( {
17381740 resource : ChatSessionUri . forSession ( providerType , sessionId ) ,
You can’t perform that action at this time.
0 commit comments