File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -538,6 +538,7 @@ export class PullRequestOverviewPanel extends IssueOverviewPanel<PullRequestMode
538538 try {
539539 const { commitSha } = message . args ;
540540 await PullRequestModel . openCommitChanges ( this . _item . githubRepository , commitSha ) ;
541+ this . _replyMessage ( message , { } ) ;
541542 } catch ( error ) {
542543 Logger . error ( `Failed to open commit changes: ${ formatError ( error ) } ` , PullRequestOverviewPanel . ID ) ;
543544 vscode . window . showErrorMessage ( vscode . l10n . t ( 'Failed to open commit changes: {0}' , formatError ( error ) ) ) ;
Original file line number Diff line number Diff line change @@ -63,10 +63,9 @@ export interface Issue {
6363 continueOnGitHub : boolean ;
6464 isDarkTheme : boolean ;
6565 isEnterprise : boolean ;
66- canAssignCopilot : boolean ;
67- reactions : Reaction [ ] ;
68- busy ?: boolean ;
69- loadingCommit ?: string ;
66+ canAssignCopilot : boolean ;
67+ reactions : Reaction [ ] ;
68+ busy ?: boolean ;
7069}
7170
7271export interface PullRequest extends Issue {
@@ -106,6 +105,7 @@ export interface PullRequest extends Issue {
106105 lastReviewType ?: ReviewType ;
107106 revertable ?: boolean ;
108107 busy ?: boolean ;
108+ loadingCommit ?: string ;
109109}
110110
111111export interface ProjectItemsReply {
Original file line number Diff line number Diff line change @@ -107,13 +107,13 @@ export default Timeline;
107107
108108const CommitEventView = ( event : CommitEvent ) => {
109109 const context = useContext ( PullRequestContext ) ;
110- const [ clickedElement , setClickedElement ] = useState < 'title' | 'sha' | null > ( null ) ;
110+ const [ clickedElement , setClickedElement ] = useState < 'title' | 'sha' | undefined > ( undefined ) ;
111111
112112 const handleCommitClick = ( e : React . MouseEvent , elementType : 'title' | 'sha' ) => {
113113 e . preventDefault ( ) ;
114114 setClickedElement ( elementType ) ;
115115 context . openCommitChanges ( event . sha ) . finally ( ( ) => {
116- setClickedElement ( null ) ;
116+ setClickedElement ( undefined ) ;
117117 } ) ;
118118 } ;
119119
You can’t perform that action at this time.
0 commit comments