@@ -24,13 +24,13 @@ import { CopilotRemoteAgentManager, SessionIdForPr } from './github/copilotRemot
2424import { guessExtensionFromMime , pickFilesForUpload , placeholdersForNames , runFileUploads , runPendingUploads } from './github/fileUpload' ;
2525import { FolderRepositoryManager } from './github/folderRepositoryManager' ;
2626import { GitHubRepository } from './github/githubRepository' ;
27+ import type { PullRequestNumberData } from './github/graphql' ;
2728import { Issue } from './github/interface' ;
2829import { IssueModel } from './github/issueModel' ;
2930import { IssueOverviewPanel } from './github/issueOverview' ;
3031import { GHPRComment , GHPRCommentThread , TemporaryComment } from './github/prComment' ;
3132import { PullRequestModel } from './github/pullRequestModel' ;
3233import { PullRequestOverviewPanel } from './github/pullRequestOverview' ;
33- import { getPullRequestQuickPickItem } from './github/pullRequestQuickPick' ;
3434import { chooseItem } from './github/quickPicks' ;
3535import { RepositoriesManager } from './github/repositoriesManager' ;
3636import { codespacesPrLink , getIssuesUrl , getPullsUrl , isInCodespaces , ISSUE_OR_URL_EXPRESSION , parseIssueExpressionOutput , vscodeDevPrLink } from './github/utils' ;
@@ -130,6 +130,14 @@ export async function closeAllPrAndReviewEditors() {
130130 }
131131}
132132
133+ export function getPullRequestQuickPickItem ( pr : PullRequestNumberData ) : vscode . QuickPickItem & { prNumber : number } {
134+ return {
135+ label : `#${ pr . number } ` ,
136+ description : `${ pr . title } by @${ pr . author . login } ` ,
137+ prNumber : pr . number ,
138+ } ;
139+ }
140+
133141function isCrossChatSessionWithPR ( value : any ) : value is CrossChatSessionWithPR {
134142 const asCrossChatSessionWithPR = value as Partial < CrossChatSessionWithPR > ;
135143 return ! ! asCrossChatSessionWithPR . pullRequestDetails ;
0 commit comments