File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ export class PullRequestsTreeDataProvider extends Disposable implements vscode.T
292
292
293
293
refresh ( node ?: TreeNode , reset ?: boolean ) : void {
294
294
if ( reset ) {
295
- this . prsTreeModel . clearCache ( ) ;
295
+ this . prsTreeModel . clearCache ( true ) ;
296
296
}
297
297
return node ? this . _onDidChangeTreeData . fire ( node ) : this . _onDidChangeTreeData . fire ( ) ;
298
298
}
Original file line number Diff line number Diff line change @@ -118,9 +118,11 @@ export class PrsTreeModel extends Disposable {
118
118
return this . _queriedPullRequests . get ( identifier ) ;
119
119
}
120
120
121
- public clearCache ( ) {
121
+ public clearCache ( silent : boolean = false ) {
122
122
this . _cachedPRs . clear ( ) ;
123
- this . _onDidChangeData . fire ( ) ;
123
+ if ( ! silent ) {
124
+ this . _onDidChangeData . fire ( ) ;
125
+ }
124
126
}
125
127
126
128
public clearRepo ( folderRepoManager : FolderRepositoryManager ) {
You can’t perform that action at this time.
0 commit comments