We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 263d074 commit 52a86a7Copy full SHA for 52a86a7
1 file changed
src/hooks/usePantry.ts
@@ -49,11 +49,13 @@ export default function usePantry() {
49
const prefix = config.prefix.join('tea.xyz/var/pantry/projects')
50
51
async function* ls(): AsyncGenerator<LsEntry> {
52
+ const seen = new Set()
53
+
54
for (const prefix of pantry_paths()) {
55
for await (const path of _ls_pantry(prefix)) {
- yield {
- project: path.parent().relative({ to: prefix }),
56
- path
+ const project = path.parent().relative({ to: prefix })
57
+ if (seen.insert(project).inserted) {
58
+ yield { project, path }
59
}
60
61
0 commit comments