Skip to content

Commit ceee907

Browse files
authored
Please do not automatically collapse the comment I just created when using collapseAll (#8366)
Fixes #6503
1 parent 2ffd771 commit ceee907

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/view/treeNodes/pullRequestNode.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ export class PRNode extends TreeNode implements vscode.CommentingRangeProvider2
121121

122122
// Kick off review thread initialization but don't await it.
123123
// Events will be fired later that will cause the tree to update when this is ready.
124-
this.pullRequestModel.initializeReviewThreadCache();
124+
if (!this.pullRequestModel.reviewThreadsCacheReady) {
125+
this.pullRequestModel.initializeReviewThreadCache();
126+
}
125127

126128
return result;
127129
} catch (e) {

0 commit comments

Comments
 (0)