File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
src/providers/FileSystemPovider Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -25,20 +25,21 @@ export class FileSearchProvider implements vscode.FileSearchProvider {
25
25
. getDocNames ( {
26
26
filter : query . pattern ,
27
27
category,
28
- generated
28
+ generated,
29
29
} )
30
30
. then ( ( data ) => data . result . content )
31
31
. then ( ( files : DocSearchResult [ ] ) =>
32
- files . map ( ( file ) => {
33
- if ( category === "*" && file . cat === "CSP" ) {
34
- return null ;
35
- }
36
- if ( ! options . maxResults || ++ counter <= options . maxResults ) {
37
- return options . folder . with ( { path : `/${ file . name } ` } ) ;
38
- } else {
39
- return null ;
40
- }
41
- } )
32
+ files
33
+ . map ( ( file ) => {
34
+ if ( category === "*" && file . cat === "CSP" ) {
35
+ return null ;
36
+ }
37
+ if ( ! options . maxResults || ++ counter <= options . maxResults ) {
38
+ return options . folder . with ( { path : `/${ file . name } ` } ) ;
39
+ } else {
40
+ return null ;
41
+ }
42
+ } )
42
43
. filter ( ( el ) => el !== null )
43
44
) ;
44
45
}
You can’t perform that action at this time.
0 commit comments