File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,9 @@ export class PullRequestsTreeDataProvider extends Disposable implements vscode.T
250250 * Search for PR node within a category node
251251 */
252252 private async findPRNodeInCategory ( categoryNode : CategoryTreeNode , pullRequest : PullRequestModel ) : Promise < PRNode | undefined > {
253+ if ( categoryNode . collapsibleState !== vscode . TreeItemCollapsibleState . Expanded ) {
254+ return ;
255+ }
253256 const children = await categoryNode . getChildren ( false ) ;
254257 for ( const child of children ) {
255258 if ( child instanceof PRNode && ( child . pullRequestModel . number === pullRequest . number ) && ( child . pullRequestModel . remote . owner === pullRequest . remote . owner ) && ( child . pullRequestModel . remote . repositoryName === pullRequest . remote . repositoryName ) ) {
You can’t perform that action at this time.
0 commit comments