Skip to content

Commit 0e03c63

Browse files
committed
Improve file walk logging
1 parent c537cbd commit 0e03c63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Curry/LanguageServer/Index/Store.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ walkFilesIgnoringHidden = walkFilesWith $ WalkConfiguration
228228
ignorePaths <- filterM doesFileExist $ (fp </>) <$> [".curry-language-server-ignore", ".gitignore"]
229229
ignored <- join <$> mapM readIgnoreFile ignorePaths
230230
unless (null ignored) $
231-
infoM "cls.indexStore" $ "In " ++ takeFileName fp ++ " ignoring " ++ show ignored
231+
infoM "cls.indexStore" $ "In '" ++ takeFileName fp ++ "' ignoring " ++ show (G.decompile <$> ignored)
232232
return $ Just ignored
233233
, wcShouldIgnore = \ignored fp -> do
234234
isDir <- doesDirectoryExist fp
235235
let fn = takeFileName fp
236236
matchesFn pat = any (G.match pat) $ catMaybes [Just fn, if isDir then Just (fn ++ "/") else Nothing]
237237
matchingIgnores = filter matchesFn ignored
238238
unless (null matchingIgnores) $
239-
debugM "cls.indexStore" $ "Ignoring " ++ fn ++ " since it matches " ++ show matchingIgnores
239+
debugM "cls.indexStore" $ "Ignoring '" ++ fn ++ "' since it matches " ++ show matchingIgnores
240240
return $ not (null matchingIgnores) || "." `isPrefixOf` fn
241241
}
242242

0 commit comments

Comments
 (0)