Skip to content

Commit 90c9dff

Browse files
authored
Don't expand category nodes to follow current PR (#7589)
1 parent 1a6d1fa commit 90c9dff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/view/prsTreeDataProvider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)