@@ -45,13 +45,21 @@ export const quickPickOne = (
4545const createQuickPick = < T > (
4646 items : readonly QuickPickItemWithValue < T > [ ] ,
4747 selectedItems : readonly QuickPickItemWithValue < T > [ ] | undefined ,
48- options : { canSelectMany : boolean ; placeholder ?: string ; title : Title }
48+ options : {
49+ canSelectMany : boolean
50+ placeholder ?: string
51+ title : Title
52+ matchOnDescription ?: boolean
53+ matchOnDetail ?: boolean
54+ }
4955) : QuickPick < QuickPickItemWithValue < T > > => {
5056 const quickPick = window . createQuickPick < QuickPickItemWithValue < T > > ( )
5157
5258 quickPick . canSelectMany = options . canSelectMany
5359 quickPick . placeholder = options . placeholder
5460 quickPick . title = options . title
61+ quickPick . matchOnDescription = options . matchOnDescription || false
62+ quickPick . matchOnDetail = options . matchOnDetail || false
5563
5664 quickPick . items = items
5765 if ( selectedItems ) {
@@ -181,12 +189,14 @@ export const quickPickLimitedValues = <T>(
181189 items : QuickPickItemWithValue < T > [ ] ,
182190 selectedItems : readonly QuickPickItemWithValue < T > [ ] ,
183191 maxSelectedItems : number ,
184- title : Title
192+ title : Title ,
193+ options ?: { matchOnDescription ?: boolean ; matchOnDetail ?: boolean }
185194) : Promise < Exclude < T , undefined > [ ] | undefined > =>
186195 new Promise ( resolve => {
187196 const quickPick = createQuickPick ( items , selectedItems , {
188197 canSelectMany : true ,
189- title
198+ title,
199+ ...options
190200 } )
191201
192202 limitSelected < T > ( quickPick , maxSelectedItems )
0 commit comments