@@ -1540,10 +1540,15 @@ export async function* pickRepositoryStep<
1540
1540
1541
1541
const step = createPickStep < RepositoryQuickPickItem > ( {
1542
1542
title : context . title ,
1543
- placeholder : placeholder ,
1543
+ placeholder : context . repos . length === 0 ? ` ${ placeholder } — no opened repositories found` : placeholder ,
1544
1544
items :
1545
1545
context . repos . length === 0
1546
- ? [ createDirectiveQuickPickItem ( Directive . Cancel ) ]
1546
+ ? [
1547
+ createDirectiveQuickPickItem ( Directive . Cancel , true , {
1548
+ label : 'Cancel' ,
1549
+ detail : 'No opened repositories found' ,
1550
+ } ) ,
1551
+ ]
1547
1552
: Promise . all (
1548
1553
context . repos . map ( r =>
1549
1554
createRepositoryQuickPickItem ( r , r . id === active ?. id , {
@@ -1605,10 +1610,16 @@ export async function* pickRepositoriesStep<
1605
1610
const step = createPickStep < RepositoryQuickPickItem > ( {
1606
1611
multiselect : true ,
1607
1612
title : context . title ,
1608
- placeholder : options . placeholder ,
1613
+ placeholder :
1614
+ context . repos . length === 0 ? `${ options . placeholder } — no opened repositories found` : options . placeholder ,
1609
1615
items :
1610
1616
context . repos . length === 0
1611
- ? [ createDirectiveQuickPickItem ( Directive . Cancel ) ]
1617
+ ? [
1618
+ createDirectiveQuickPickItem ( Directive . Cancel , true , {
1619
+ label : 'Cancel' ,
1620
+ detail : 'No opened repositories found' ,
1621
+ } ) ,
1622
+ ]
1612
1623
: Promise . all (
1613
1624
context . repos . map ( repo =>
1614
1625
createRepositoryQuickPickItem (
0 commit comments