From 16f1b7d6c900c7b6a5edd7dbd5d86c50f4cad16a Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Wed, 30 Nov 2022 15:26:34 +0100 Subject: [PATCH] Fix empty file tree (#4280) Fixes #4279 --- src/view/treeNodes/pullRequestNode.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/view/treeNodes/pullRequestNode.ts b/src/view/treeNodes/pullRequestNode.ts index 63f824695a..16e68a5dc7 100644 --- a/src/view/treeNodes/pullRequestNode.ts +++ b/src/view/treeNodes/pullRequestNode.ts @@ -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 {