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 {
2525 . getDocNames ( {
2626 filter : query . pattern ,
2727 category,
28- generated
28+ generated,
2929 } )
3030 . then ( ( data ) => data . result . content )
3131 . 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+ } )
4243 . filter ( ( el ) => el !== null )
4344 ) ;
4445 }
You can’t perform that action at this time.
0 commit comments