File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ export class Search {
195195
196196 const index = this . _refidMap [ refid ] ;
197197 if ( typeof index !== 'number' ) {
198+ console . log ( this . _refidMap ) ;
198199 throw new Error ( `Unknown refid ${ refid } ` ) ;
199200 }
200201
@@ -278,18 +279,14 @@ export class Search {
278279 this . _compounds [ repo ] = compounds ;
279280
280281 const referenceSearchItems = compounds . reduce ( ( items , compound ) => {
281- if ( compound . kind !== 'namespace' ) {
282- if ( ! [ 'dir' ] . includes ( compound . kind ) ) {
283- items . push ( { type : 'reference' , repo, item : compound } ) ;
284- }
285- items . push (
286- ...compound . members . map ( mem => ( {
287- type : 'reference' as 'reference' ,
288- repo,
289- item : { ...mem , owner : compound } ,
290- } ) ) ,
291- ) ;
292- }
282+ items . push ( { type : 'reference' , repo, item : compound } ) ;
283+ items . push (
284+ ...compound . members . map ( mem => ( {
285+ type : 'reference' as 'reference' ,
286+ repo,
287+ item : { ...mem , owner : compound } ,
288+ } ) ) ,
289+ ) ;
293290 return items ;
294291 } , [ ] as SearchResultReferenceItem [ ] ) ;
295292
You can’t perform that action at this time.
0 commit comments