@@ -220,7 +220,7 @@ export function registerCommands(
220220 if ( activePullRequests . length >= 1 ) {
221221 const result = await chooseItem < PullRequestModel > (
222222 activePullRequests ,
223- itemValue => itemValue . html_url ,
223+ itemValue => ( { label : itemValue . html_url } ) ,
224224 ) ;
225225 if ( result ) {
226226 openPullRequestOnGitHub ( result , telemetry ) ;
@@ -257,7 +257,7 @@ export function registerCommands(
257257 ? (
258258 await chooseItem (
259259 activePullRequestsWithFolderManager ,
260- itemValue => itemValue . activePr . html_url ,
260+ itemValue => ( { label : itemValue . activePr . html_url } ) ,
261261 )
262262 )
263263 : activePullRequestsWithFolderManager [ 0 ] ;
@@ -436,7 +436,7 @@ export function registerCommands(
436436 }
437437 return chooseItem < ReviewManager > (
438438 reviewsManager . reviewManagers ,
439- itemValue => pathLib . basename ( itemValue . repository . rootUri . fsPath ) ,
439+ itemValue => ( { label : pathLib . basename ( itemValue . repository . rootUri . fsPath ) } ) ,
440440 { placeHolder : vscode . l10n . t ( 'Choose a repository to create a pull request in' ) , ignoreFocusOut : true } ,
441441 ) ;
442442 }
@@ -788,7 +788,7 @@ export function registerCommands(
788788 pullRequestModel = await chooseItem < PullRequestModel > ( reposManager . folderManagers
789789 . map ( folderManager => folderManager . activePullRequest ! )
790790 . filter ( activePR => ! ! activePR ) ,
791- itemValue => `${ itemValue . number } : ${ itemValue . title } ` ,
791+ itemValue => ( { label : `${ itemValue . number } : ${ itemValue . title } ` } ) ,
792792 { placeHolder : vscode . l10n . t ( 'Choose the pull request to exit' ) } ) ;
793793 } else {
794794 pullRequestModel = pr ;
@@ -924,7 +924,7 @@ export function registerCommands(
924924 if ( activePullRequests . length >= 1 ) {
925925 issueModel = await chooseItem < PullRequestModel > (
926926 activePullRequests ,
927- itemValue => itemValue . title ,
927+ itemValue => ( { label : itemValue . title } ) ,
928928 ) ;
929929 }
930930 } else {
@@ -1602,7 +1602,7 @@ ${contents}
16021602 . filter ( activePR => ! ! activePR ) ;
16031603 pr = await chooseItem < PullRequestModel > (
16041604 activePullRequests ,
1605- itemValue => `${ itemValue . number } : ${ itemValue . title } ` ,
1605+ itemValue => ( { label : `${ itemValue . number } : ${ itemValue . title } ` } ) ,
16061606 { placeHolder : vscode . l10n . t ( 'Pull request to create a link for' ) } ,
16071607 ) ;
16081608 }
@@ -1658,7 +1658,7 @@ ${contents}
16581658 }
16591659 const githubRepo = await chooseItem < { manager : FolderRepositoryManager , repo : GitHubRepository } > (
16601660 githubRepositories ,
1661- itemValue => `${ itemValue . repo . remote . owner } /${ itemValue . repo . remote . repositoryName } ` ,
1661+ itemValue => ( { label : `${ itemValue . repo . remote . owner } /${ itemValue . repo . remote . repositoryName } ` } ) ,
16621662 { placeHolder : vscode . l10n . t ( 'Which GitHub repository do you want to checkout the pull request from?' ) }
16631663 ) ;
16641664 if ( ! githubRepo ) {
@@ -1694,7 +1694,7 @@ ${contents}
16941694 } ) ;
16951695 return chooseItem < GitHubRepository > (
16961696 githubRepositories ,
1697- itemValue => `${ itemValue . remote . owner } /${ itemValue . remote . repositoryName } ` ,
1697+ itemValue => ( { label : `${ itemValue . remote . owner } /${ itemValue . remote . repositoryName } ` } ) ,
16981698 { placeHolder : vscode . l10n . t ( 'Which GitHub repository do you want to open?' ) }
16991699 ) ;
17001700 }
@@ -1918,7 +1918,7 @@ ${contents}
19181918
19191919 const pr = await chooseItem < PullRequestModel > (
19201920 activePullRequests ,
1921- itemValue => `${ itemValue . number } : ${ itemValue . title } ` ,
1921+ itemValue => ( { label : `${ itemValue . number } : ${ itemValue . title } ` } ) ,
19221922 { placeHolder : vscode . l10n . t ( 'Pull request to create a link for' ) } ,
19231923 ) ;
19241924 if ( pr ) {
0 commit comments