File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ export class IssueOverviewPanel<TItem extends IssueModel = IssueModel> extends W
144
144
this . pollForUpdates ( this . _panel . visible , true ) ;
145
145
}
146
146
} ) ) ;
147
+ this . _register ( { dispose : ( ) => clearTimeout ( this . timeout ) } ) ;
147
148
148
149
}
149
150
Original file line number Diff line number Diff line change @@ -457,6 +457,7 @@ export class PullRequestModel extends IssueModel<PullRequest> implements IPullRe
457
457
threadWithComment . viewerCanResolve = true ;
458
458
this . _onDidChangeReviewThreads . fire ( { added : [ ] , changed : [ threadWithComment ] , removed : [ ] } ) ;
459
459
}
460
+ this . _onDidChangeComments . fire ( ) ;
460
461
return reviewEvent ;
461
462
} else {
462
463
throw new Error ( `Submitting review failed, no pending review for current pull request: ${ this . number } .` ) ;
@@ -558,7 +559,6 @@ export class PullRequestModel extends IssueModel<PullRequest> implements IPullRe
558
559
throw new Error ( 'Failed to start review' ) ;
559
560
}
560
561
this . hasPendingReview = true ;
561
- this . _onDidChangeComments . fire ( ) ;
562
562
return data . addPullRequestReview . pullRequestReview . id ;
563
563
}
564
564
@@ -681,6 +681,7 @@ export class PullRequestModel extends IssueModel<PullRequest> implements IPullRe
681
681
this . _onDidChangeReviewThreads . fire ( { added : [ ] , changed : [ threadWithComment ] , removed : [ ] } ) ;
682
682
}
683
683
684
+ this . _onDidChangeComments . fire ( ) ;
684
685
return newComment ;
685
686
}
686
687
You can’t perform that action at this time.
0 commit comments