File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1710
1710
"command" : " codingAgent.openSessionLog" ,
1711
1711
"title" : " %command.codingAgent.openSessionLog.title%" ,
1712
1712
"category" : " %command.pull.request.category%"
1713
+ },
1714
+ {
1715
+ "command" : " pr.refreshChatSessions" ,
1716
+ "title" : " %command.pr.refreshChatSessions.title%" ,
1717
+ "icon" : " $(refresh)" ,
1718
+ "category" : " %command.pull.request.category%"
1713
1719
}
1714
1720
],
1715
1721
"viewsWelcome" : [
2599
2605
"command" : " notifications.refresh" ,
2600
2606
"when" : " gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github" ,
2601
2607
"group" : " navigation@1"
2608
+ },
2609
+ {
2610
+ "command" : " pr.refreshChatSessions" ,
2611
+ "when" : " view == workbench.view.chat.sessions.copilot-swe-agent" ,
2612
+ "group" : " navigation@1"
2602
2613
}
2603
2614
],
2604
2615
"view/item/context" : [
Original file line number Diff line number Diff line change 210
210
"command.review.createSuggestionFromChange.title" : " Convert to Pull Request Suggestion" ,
211
211
"command.review.copyPrLink.title" : " Copy Pull Request Link" ,
212
212
"command.pr.refreshList.title" : " Refresh Pull Requests List" ,
213
+ "command.pr.refreshChatSessions.title" : " Refresh Chat Sessions" ,
213
214
"command.pr.setFileListLayoutAsTree.title" : " View as Tree" ,
214
215
"command.pr.setFileListLayoutAsFlat.title" : " View as List" ,
215
216
"command.pr.refreshChanges.title" : " Refresh" ,
Original file line number Diff line number Diff line change @@ -1849,4 +1849,10 @@ ${contents}
1849
1849
}
1850
1850
} )
1851
1851
) ;
1852
+
1853
+ context . subscriptions . push (
1854
+ vscode . commands . registerCommand ( 'pr.refreshChatSessions' , async ( ) => {
1855
+ copilotRemoteAgentManager . refreshChatSessions ( ) ;
1856
+ } )
1857
+ ) ;
1852
1858
}
Original file line number Diff line number Diff line change @@ -771,4 +771,8 @@ export class CopilotRemoteAgentManager extends Disposable {
771
771
return new ThemeIcon ( 'circle-filled' , new vscode . ThemeColor ( 'list.warningForeground' ) ) ;
772
772
}
773
773
}
774
+
775
+ public refreshChatSessions ( ) : void {
776
+ this . _onDidChangeChatSessions . fire ( ) ;
777
+ }
774
778
}
You can’t perform that action at this time.
0 commit comments