We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a6d1fa commit 90c9dffCopy full SHA for 90c9dff
1 file changed
src/view/prsTreeDataProvider.ts
@@ -250,6 +250,9 @@ export class PullRequestsTreeDataProvider extends Disposable implements vscode.T
250
* Search for PR node within a category node
251
*/
252
private async findPRNodeInCategory(categoryNode: CategoryTreeNode, pullRequest: PullRequestModel): Promise<PRNode | undefined> {
253
+ if (categoryNode.collapsibleState !== vscode.TreeItemCollapsibleState.Expanded) {
254
+ return;
255
+ }
256
const children = await categoryNode.getChildren(false);
257
for (const child of children) {
258
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