@@ -505,28 +505,6 @@ export abstract class BaseCreatePullRequestViewProvider<T extends BasePullReques
505505 return this . _replyMessage ( message , undefined ) ;
506506 }
507507
508- private async openCreateInBrowser ( ) : Promise < void > {
509- // Get the base repository info
510- const baseRepo = this . getBaseGitHubRepo ( ) ;
511- if ( ! baseRepo ) {
512- vscode . window . showErrorMessage ( vscode . l10n . t ( 'Unable to find repository to create pull request in.' ) ) ;
513- return ;
514- }
515-
516- // Get the compare branch name - this is the branch we want to create a PR from
517- const compareBranch = this . _defaultCompareBranch ;
518- if ( ! compareBranch ) {
519- vscode . window . showErrorMessage ( vscode . l10n . t ( 'Unable to determine branch to create pull request from.' ) ) ;
520- return ;
521- }
522-
523- // Construct the GitHub URL for creating a PR
524- // Format: https://github.com/{owner}/{repo}/pull/new/{branch}
525- const url = `${ baseRepo . remote . normalizedHost } /${ baseRepo . remote . owner } /${ baseRepo . remote . repositoryName } /pull/new/${ encodeURIComponent ( compareBranch ) } ` ;
526-
527- await vscode . env . openExternal ( vscode . Uri . parse ( url ) ) ;
528- }
529-
530508 protected override async _onDidReceiveMessage ( message : IRequestMessage < any > ) {
531509 const result = await super . _onDidReceiveMessage ( message ) ;
532510 if ( result !== this . MESSAGE_UNHANDLED ) {
@@ -561,9 +539,6 @@ export abstract class BaseCreatePullRequestViewProvider<T extends BasePullReques
561539 case 'pr.removeLabel' :
562540 return this . removeLabel ( message ) ;
563541
564- case 'pr.openCreateInBrowser' :
565- return this . openCreateInBrowser ( ) ;
566-
567542 default :
568543 return this . MESSAGE_UNHANDLED ;
569544 }
@@ -1367,4 +1342,4 @@ export class CreatePullRequestViewProvider extends BaseCreatePullRequestViewProv
13671342 vscode . window . showErrorMessage ( 'Unsupported webview message' ) ;
13681343 }
13691344 }
1370- }
1345+ }
0 commit comments