Skip to content

Commit

Permalink
🐛 Fix not detect data pack in repository root
Browse files Browse the repository at this point in the history
Fix #31
  • Loading branch information
ChenCMD committed Nov 20, 2023
1 parent 1462dbd commit 87c7401
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import typings.spgodingDatapackLanguageServer.libServicesCommonMod as DLSCommon

object Datapack {
def findDatapackRoots[F[_]: Async](dir: Path, maxDepth: Int): F[List[URI]] = for {
rootCandidatePaths <- FSAsync.foreachDirRec(dir, dir, _ => true, maxDepth)(_.abs.pure[F])
rootCandidatePaths <- FSAsync.foreachDirRec(dir, dir, _ => true, maxDepth)(_.abs.pure[F]).map(x => dir :: x)
rootPaths <- rootCandidatePaths.filterA { p =>
for {
a <- FSAsync.pathAccessible(Path.join(p, "data"))
Expand Down

0 comments on commit 87c7401

Please sign in to comment.