@@ -218,7 +218,7 @@ export function registerCommands(
218218 if ( activePullRequests . length >= 1 ) {
219219 const result = await chooseItem < PullRequestModel > (
220220 activePullRequests ,
221- itemValue => itemValue . html_url ,
221+ itemValue => ( { label : itemValue . html_url } ) ,
222222 ) ;
223223 if ( result ) {
224224 openPullRequestOnGitHub ( result , telemetry ) ;
@@ -255,7 +255,7 @@ export function registerCommands(
255255 ? (
256256 await chooseItem (
257257 activePullRequestsWithFolderManager ,
258- itemValue => itemValue . activePr . html_url ,
258+ itemValue => ( { label : itemValue . activePr . html_url } ) ,
259259 )
260260 )
261261 : activePullRequestsWithFolderManager [ 0 ] ;
@@ -434,7 +434,7 @@ export function registerCommands(
434434 }
435435 return chooseItem < ReviewManager > (
436436 reviewsManager . reviewManagers ,
437- itemValue => pathLib . basename ( itemValue . repository . rootUri . fsPath ) ,
437+ itemValue => ( { label : pathLib . basename ( itemValue . repository . rootUri . fsPath ) } ) ,
438438 { placeHolder : vscode . l10n . t ( 'Choose a repository to create a pull request in' ) , ignoreFocusOut : true } ,
439439 ) ;
440440 }
@@ -786,7 +786,7 @@ export function registerCommands(
786786 pullRequestModel = await chooseItem < PullRequestModel > ( reposManager . folderManagers
787787 . map ( folderManager => folderManager . activePullRequest ! )
788788 . filter ( activePR => ! ! activePR ) ,
789- itemValue => `${ itemValue . number } : ${ itemValue . title } ` ,
789+ itemValue => ( { label : `${ itemValue . number } : ${ itemValue . title } ` } ) ,
790790 { placeHolder : vscode . l10n . t ( 'Choose the pull request to exit' ) } ) ;
791791 } else {
792792 pullRequestModel = pr ;
@@ -922,7 +922,7 @@ export function registerCommands(
922922 if ( activePullRequests . length >= 1 ) {
923923 issueModel = await chooseItem < PullRequestModel > (
924924 activePullRequests ,
925- itemValue => itemValue . title ,
925+ itemValue => ( { label : itemValue . title } ) ,
926926 ) ;
927927 }
928928 } else {
@@ -1600,7 +1600,7 @@ ${contents}
16001600 . filter ( activePR => ! ! activePR ) ;
16011601 pr = await chooseItem < PullRequestModel > (
16021602 activePullRequests ,
1603- itemValue => `${ itemValue . number } : ${ itemValue . title } ` ,
1603+ itemValue => ( { label : `${ itemValue . number } : ${ itemValue . title } ` } ) ,
16041604 { placeHolder : vscode . l10n . t ( 'Pull request to create a link for' ) } ,
16051605 ) ;
16061606 }
@@ -1656,7 +1656,7 @@ ${contents}
16561656 }
16571657 const githubRepo = await chooseItem < { manager : FolderRepositoryManager , repo : GitHubRepository } > (
16581658 githubRepositories ,
1659- itemValue => `${ itemValue . repo . remote . owner } /${ itemValue . repo . remote . repositoryName } ` ,
1659+ itemValue => ( { label : `${ itemValue . repo . remote . owner } /${ itemValue . repo . remote . repositoryName } ` } ) ,
16601660 { placeHolder : vscode . l10n . t ( 'Which GitHub repository do you want to checkout the pull request from?' ) }
16611661 ) ;
16621662 if ( ! githubRepo ) {
@@ -1692,7 +1692,7 @@ ${contents}
16921692 } ) ;
16931693 return chooseItem < GitHubRepository > (
16941694 githubRepositories ,
1695- itemValue => `${ itemValue . remote . owner } /${ itemValue . remote . repositoryName } ` ,
1695+ itemValue => ( { label : `${ itemValue . remote . owner } /${ itemValue . remote . repositoryName } ` } ) ,
16961696 { placeHolder : vscode . l10n . t ( 'Which GitHub repository do you want to open?' ) }
16971697 ) ;
16981698 }
@@ -1916,7 +1916,7 @@ ${contents}
19161916
19171917 const pr = await chooseItem < PullRequestModel > (
19181918 activePullRequests ,
1919- itemValue => `${ itemValue . number } : ${ itemValue . title } ` ,
1919+ itemValue => ( { label : `${ itemValue . number } : ${ itemValue . title } ` } ) ,
19201920 { placeHolder : vscode . l10n . t ( 'Pull request to create a link for' ) } ,
19211921 ) ;
19221922 if ( pr ) {
0 commit comments