@@ -48,8 +48,8 @@ export class PullRequestOverviewPanel extends IssueOverviewPanel<PullRequestMode
4848 /**
4949 * Event emitter for when a PR overview becomes active
5050 */
51- private static _onDidChangeActivePullRequest = new vscode . EventEmitter < PullRequestModel > ( ) ;
52- public static readonly onDidChangeActivePullRequest = PullRequestOverviewPanel . _onDidChangeActivePullRequest . event ;
51+ private static _onVisible = new vscode . EventEmitter < PullRequestModel > ( ) ;
52+ public static readonly onVisible = PullRequestOverviewPanel . _onVisible . event ;
5353
5454 private _repositoryDefaultBranch : string ;
5555 private _existingReviewers : ReviewState [ ] = [ ] ;
@@ -163,10 +163,10 @@ export class PullRequestOverviewPanel extends IssueOverviewPanel<PullRequestMode
163163 protected override onDidChangeViewState ( e : vscode . WebviewPanelOnDidChangeViewStateEvent ) : void {
164164 super . onDidChangeViewState ( e ) ;
165165 this . setVisibilityContext ( ) ;
166-
166+
167167 // If the panel becomes visible and we have an item, notify that this PR is active
168168 if ( this . _panel . visible && this . _item ) {
169- PullRequestOverviewPanel . _onDidChangeActivePullRequest . fire ( this . _item ) ;
169+ PullRequestOverviewPanel . _onVisible . fire ( this . _item ) ;
170170 }
171171 }
172172
@@ -320,10 +320,10 @@ export class PullRequestOverviewPanel extends IssueOverviewPanel<PullRequestMode
320320 }
321321
322322 const result = vscode . window . withProgress ( { location : { viewId : 'pr:github' } } , ( ) => this . updateItem ( pullRequestModel ) ) ;
323-
323+
324324 // Notify that this PR overview is now active
325- PullRequestOverviewPanel . _onDidChangeActivePullRequest . fire ( pullRequestModel ) ;
326-
325+ PullRequestOverviewPanel . _onVisible . fire ( pullRequestModel ) ;
326+
327327 return result ;
328328 }
329329
@@ -824,7 +824,7 @@ export class PullRequestOverviewPanel extends IssueOverviewPanel<PullRequestMode
824824 * Static dispose method to clean up static resources
825825 */
826826 public static dispose ( ) {
827- PullRequestOverviewPanel . _onDidChangeActivePullRequest . dispose ( ) ;
827+ PullRequestOverviewPanel . _onVisible . dispose ( ) ;
828828 }
829829}
830830
0 commit comments