@@ -25,22 +25,26 @@ export class CheckboxQuickPick {
25
25
private static showInner (
26
26
items : CheckboxQuickPickItem [ ] ,
27
27
callback : ( items : CheckboxQuickPickItem [ ] ) => void ) : void {
28
- vscode . window . showQuickPick (
29
- CheckboxQuickPick . getQuickPickItems ( items ) ,
30
- { ignoreFocusOut : true , placeHolder : CheckboxQuickPick . confirmPlaceHolder } ) . then ( ( selection ) => {
31
- if ( ! selection ) {
32
- return ;
33
- }
28
+ vscode . window . showQuickPick (
29
+ CheckboxQuickPick . getQuickPickItems ( items ) ,
30
+ {
31
+ ignoreFocusOut : true ,
32
+ matchOnDescription : true ,
33
+ placeHolder : CheckboxQuickPick . confirmPlaceHolder
34
+ } ) . then ( ( selection ) => {
35
+ if ( ! selection ) {
36
+ return ;
37
+ }
34
38
35
- if ( selection . label === CheckboxQuickPick . confirm ) {
36
- callback ( items ) ;
37
- return ;
38
- }
39
+ if ( selection . label === CheckboxQuickPick . confirm ) {
40
+ callback ( items ) ;
41
+ return ;
42
+ }
39
43
40
- let index : number = CheckboxQuickPick . getRuleIndex ( items , selection . description ) ;
41
- CheckboxQuickPick . toggleSelection ( items [ index ] ) ;
42
- CheckboxQuickPick . showInner ( items , callback ) ;
43
- } ) ;
44
+ let index : number = CheckboxQuickPick . getRuleIndex ( items , selection . description ) ;
45
+ CheckboxQuickPick . toggleSelection ( items [ index ] ) ;
46
+ CheckboxQuickPick . showInner ( items , callback ) ;
47
+ } ) ;
44
48
}
45
49
46
50
private static getRuleIndex ( items : CheckboxQuickPickItem [ ] , itemLabel : string ) : number {
0 commit comments