@@ -39,11 +39,31 @@ export class IssueQuickAccess extends PickerQuickAccessProvider<IPickerQuickAcce
39
39
// Add default items
40
40
const productLabel = this . productService . nameLong ;
41
41
const marketPlaceLabel = localize ( "reportExtensionMarketplace" , "Extension Marketplace" ) ;
42
- issuePicksConst . push (
43
- { label : productLabel , ariaLabel : productLabel , accept : ( ) => this . commandService . executeCommand ( 'workbench.action.openIssueReporter' , { issueSource : IssueSource . VSCode } ) } ,
44
- { label : marketPlaceLabel , ariaLabel : marketPlaceLabel , accept : ( ) => this . commandService . executeCommand ( 'workbench.action.openIssueReporter' , { issueSource : IssueSource . Marketplace } ) } ,
45
- { type : 'separator' , label : localize ( 'extensions' , "Extensions" ) }
46
- ) ;
42
+ const productFilter = matchesFuzzy ( filter , productLabel , true ) ;
43
+ const marketPlaceFilter = matchesFuzzy ( filter , marketPlaceLabel , true ) ;
44
+
45
+ // Add product pick if product filter matches
46
+ if ( productFilter ) {
47
+ issuePicksConst . push ( {
48
+ label : productLabel ,
49
+ ariaLabel : productLabel ,
50
+ highlights : { label : productFilter } ,
51
+ accept : ( ) => this . commandService . executeCommand ( 'workbench.action.openIssueReporter' , { issueSource : IssueSource . VSCode } )
52
+ } ) ;
53
+ }
54
+
55
+ // Add marketplace pick if marketplace filter matches
56
+ if ( marketPlaceFilter ) {
57
+ issuePicksConst . push ( {
58
+ label : marketPlaceLabel ,
59
+ ariaLabel : marketPlaceLabel ,
60
+ highlights : { label : marketPlaceFilter } ,
61
+ accept : ( ) => this . commandService . executeCommand ( 'workbench.action.openIssueReporter' , { issueSource : IssueSource . Marketplace } )
62
+ } ) ;
63
+ }
64
+
65
+ issuePicksConst . push ( { type : 'separator' , label : localize ( 'extensions' , "Extensions" ) } ) ;
66
+
47
67
48
68
// creates menu from contributed
49
69
const menu = this . menuService . createMenu ( MenuId . IssueReporter , this . contextKeyService ) ;
0 commit comments