Skip to content

Commit

Permalink
feat: Mark as viewed files found through inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Aug 7, 2024
1 parent 155b8d9 commit a3da81f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bids-validator/src/files/inheritance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function* walkBack(
)
})
if (exactMatch) {
exactMatch.viewed = true
yield exactMatch
} else {
console.warn(`
Expand All @@ -39,6 +40,7 @@ ${candidates.map((file) => `* ${file.path}`).join('\n')}
`)
}
} else if (candidates.length === 1) {
candidates[0].viewed = true
yield candidates[0]
}
if (!inherit) break
Expand Down

0 comments on commit a3da81f

Please sign in to comment.