File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ export class PullRequestsTreeDataProvider extends Disposable implements vscode.T
6868 } ) ) ;
6969 this . _register ( new PRStatusDecorationProvider ( this . prsTreeModel , this . _copilotManager ) ) ;
7070 this . _register ( vscode . commands . registerCommand ( 'pr.refreshList' , _ => {
71+ this . prsTreeModel . forceClearCache ( ) ;
7172 this . refreshAllQueryResults ( true ) ;
7273 } ) ) ;
7374
Original file line number Diff line number Diff line change @@ -148,6 +148,11 @@ export class PrsTreeModel extends Disposable {
148148 return this . _queriedPullRequests . get ( identifier ) ;
149149 }
150150
151+ public forceClearCache ( ) {
152+ this . _cachedPRs . clear ( ) ;
153+ this . _onDidChangeData . fire ( ) ;
154+ }
155+
151156 public clearCache ( silent : boolean = false ) {
152157 if ( this . _cachedPRs . size === 0 ) {
153158 return ;
You can’t perform that action at this time.
0 commit comments