Skip to content

Commit d0936aa

Browse files
committed
Fixes #2550 PRs not always showing up in Commits
1 parent b992828 commit d0936aa

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
2626

2727
### Fixed
2828

29+
- Fixes [#2550](https://github.com/gitkraken/vscode-gitlens/issues/2550) - Related pull request disappears after refresh
2930
- Fixes [#2549](https://github.com/gitkraken/vscode-gitlens/issues/2549) - toggle code lens does not work with gitlens.codeLens.enabled == false
3031
- Fixes [#2553](https://github.com/gitkraken/vscode-gitlens/issues/2553) - Can't add remote url with git@ format
3132
- Fixes [#2083](https://github.com/gitkraken/vscode-gitlens/issues/2083), [#2539](https://github.com/gitkraken/vscode-gitlens/issues/2539) - Fix stashing staged changes — thanks to [PR #2540](https://github.com/gitkraken/vscode-gitlens/pull/2540) by Nafiur Rahman Khadem ([@ShafinKhadem](https://github.com/ShafinKhadem))

src/views/commitsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class CommitsRepositoryNode extends RepositoryFolderNode<CommitsView, Bra
5555
}
5656
}
5757

58-
this.child = new BranchNode(this.uri, this.view, this, branch, true, {
58+
this.child = new BranchNode(this.uri, this.view, this.splatted ? this.parent ?? this : this, branch, true, {
5959
expanded: true,
6060
limitCommits: !this.splatted,
6161
showComparison: this.view.config.showBranchComparison,

src/views/nodes/branchNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export class BranchNode
182182

183183
// Refresh this node to add the pull request node or remove the spinner
184184
if (spinner || pr != null) {
185-
this.view.triggerNodeChange(this);
185+
this.view.triggerNodeChange(this.root ? this.parent ?? this : this);
186186
}
187187
});
188188
}

0 commit comments

Comments
 (0)