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 17101710 "command" : " codingAgent.openSessionLog" ,
17111711 "title" : " %command.codingAgent.openSessionLog.title%" ,
17121712 "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%"
17131719 }
17141720 ],
17151721 "viewsWelcome" : [
25992605 "command" : " notifications.refresh" ,
26002606 "when" : " gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github" ,
26012607 "group" : " navigation@1"
2608+ },
2609+ {
2610+ "command" : " pr.refreshChatSessions" ,
2611+ "when" : " view == workbench.view.chat.sessions.copilot-swe-agent" ,
2612+ "group" : " navigation@1"
26022613 }
26032614 ],
26042615 "view/item/context" : [
Original file line number Diff line number Diff line change 210210 "command.review.createSuggestionFromChange.title" : " Convert to Pull Request Suggestion" ,
211211 "command.review.copyPrLink.title" : " Copy Pull Request Link" ,
212212 "command.pr.refreshList.title" : " Refresh Pull Requests List" ,
213+ "command.pr.refreshChatSessions.title" : " Refresh Chat Sessions" ,
213214 "command.pr.setFileListLayoutAsTree.title" : " View as Tree" ,
214215 "command.pr.setFileListLayoutAsFlat.title" : " View as List" ,
215216 "command.pr.refreshChanges.title" : " Refresh" ,
Original file line number Diff line number Diff line change @@ -1849,4 +1849,10 @@ ${contents}
18491849 }
18501850 } )
18511851 ) ;
1852+
1853+ context . subscriptions . push (
1854+ vscode . commands . registerCommand ( 'pr.refreshChatSessions' , async ( ) => {
1855+ copilotRemoteAgentManager . refreshChatSessions ( ) ;
1856+ } )
1857+ ) ;
18521858}
Original file line number Diff line number Diff line change @@ -771,4 +771,8 @@ export class CopilotRemoteAgentManager extends Disposable {
771771 return new ThemeIcon ( 'circle-filled' , new vscode . ThemeColor ( 'list.warningForeground' ) ) ;
772772 }
773773 }
774+
775+ public refreshChatSessions ( ) : void {
776+ this . _onDidChangeChatSessions . fire ( ) ;
777+ }
774778}
You can’t perform that action at this time.
0 commit comments