Skip to content

Commit bdcb492

Browse files
committed
fix: directory were not loading correctly
1 parent 1294d4a commit bdcb492

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/search/search.service.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)