@@ -19,7 +19,7 @@ import { GithubItemStateEnum, IAccount, ILabel, IMilestone, IProject, IProjectIt
1919import { IssueModel } from './issueModel' ;
2020import { getAssigneesQuickPickItems , getLabelOptions , getMilestoneFromQuickPick , getProjectFromQuickPick } from './quickPicks' ;
2121import { isInCodespaces , vscodeDevPrLink } from './utils' ;
22- import { ChangeAssigneesReply , Issue , ProjectItemsReply } from './views' ;
22+ import { ChangeAssigneesReply , Issue , ProjectItemsReply , SubmitReviewReply } from './views' ;
2323
2424export class IssueOverviewPanel < TItem extends IssueModel = IssueModel > extends WebviewBase {
2525 public static ID : string = 'IssueOverviewPanel' ;
@@ -603,14 +603,17 @@ export class IssueOverviewPanel<TItem extends IssueModel = IssueModel> extends W
603603 }
604604
605605 private createComment ( message : IRequestMessage < string > ) {
606- return this . _item . createIssueComment ( message . args ) . then ( comment => {
606+ return this . _item . createIssueComment ( message . args ) . then ( async ( comment ) => {
607607 const commentedEvent : CommentEvent = {
608608 ...comment ,
609609 event : EventType . Commented
610610 } ;
611- return this . _replyMessage ( message , {
612- event : commentedEvent ,
613- } ) ;
611+ const allEvents = await this . _item . githubRepository . getIssueTimelineEvents ( this . _item ) ;
612+ const reply : SubmitReviewReply = {
613+ events : allEvents ,
614+ reviewedEvent : commentedEvent ,
615+ } ;
616+ return this . _replyMessage ( message , reply ) ;
614617 } ) ;
615618 }
616619
0 commit comments