Skip to content

Commit 1162105

Browse files
Copilotalexr00
andcommitted
Fix review deletion to properly clean up VS Code comments
Added await to getReviewThreads() call in deleteReview() method to ensure comment threads are properly updated before the method returns. This allows the review thread change event to fire and trigger cleanup of VS Code comment threads associated with the deleted review. Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent b695670 commit 1162105

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/github/pullRequestModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ export class PullRequestModel extends IssueModel<PullRequest> implements IPullRe
639639
this.hasPendingReview = false;
640640
await this.updateDraftModeContext();
641641

642-
this.getReviewThreads();
642+
await this.getReviewThreads();
643643
this._onDidChange.fire({ timeline: true });
644644
return {
645645
deletedReviewId: databaseId,

0 commit comments

Comments
 (0)