Skip to content

Commit 7d38a6d

Browse files
committed
fix duplicate files
1 parent 4f420b0 commit 7d38a6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ghcide/session-loader/Development/IDE/Session.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} rootDir que = do
652652
consultCradles hyCfpList@(h:hs) = do
653653
let lfpLogs = map (makeRelative rootDir . snd) hyCfpList
654654
logWith recorder Info $ LogCradlePaths lfpLogs
655-
cradles <- mapM (\(hieYaml, _) -> do c <- loadCradle recorder hieYaml rootDir; return (c,h)) (h:|hs)
655+
cradles <- mapM (\hf@(hieYaml, _) -> do c <- loadCradle recorder hieYaml rootDir; return (c,hf)) (h:|hs)
656656
when optTesting $ mRunLspT lspEnv $ mapM_ (\(_, cfp) -> sendNotification (SMethod_CustomMethod (Proxy @"ghcide/cradle/loaded")) (toJSON cfp)) hyCfpList
657657
let progMsg = "Setting up " <> T.intercalate "," (T.pack . takeBaseName . cradleRootDir <$> NE.toList (fmap fst cradles))
658658
<> " (for " <> T.intercalate "," (T.pack <$> lfpLogs) <> ")"

0 commit comments

Comments
 (0)