Skip to content

Commit

Permalink
Fix empty file tree (#4280)
Browse files Browse the repository at this point in the history
Fixes #4279
  • Loading branch information
alexr00 authored Nov 30, 2022
1 parent 1a39fde commit 16f1b7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/view/treeNodes/pullRequestNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export class PRNode extends TreeNode implements vscode.CommentingRangeProvider {
const rawChanges: (SlimFileChange | InMemFileChange)[] = [];
const isCurrentPR = this.pullRequestModel.equals(this._folderReposManager.activePullRequest);
if (isCurrentPR && this._folderReposManager.activePullRequest !== undefined) {
this.pullRequestModel = this._folderReposManager.activePullRequest;
rawChanges.push(...this._folderReposManager.activePullRequest.fileChanges.values());
}
else {
Expand Down

0 comments on commit 16f1b7d

Please sign in to comment.