From 3b78c48651dd5e5a78e21bc66437aac0d32ef939 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Fri, 20 Dec 2024 14:30:35 +0100 Subject: [PATCH] Comments don't show on non-checked out PR when closing and re-opening the file from the PRs veiw (#6573) Fixes #6571 --- src/view/pullRequestCommentController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/view/pullRequestCommentController.ts b/src/view/pullRequestCommentController.ts index 5081fb4139..ca45e0133f 100644 --- a/src/view/pullRequestCommentController.ts +++ b/src/view/pullRequestCommentController.ts @@ -526,6 +526,7 @@ export class PullRequestCommentController extends CommentControllerBase implemen private removeAllCommentsThreads(): void { Object.keys(this._commentThreadCache).forEach(key => { disposeAll(this._commentThreadCache[key]); + delete this._commentThreadCache[key]; }); }