Skip to content

Commit c21ce09

Browse files
committed
remove dup when type checking all files in the project on startup
1 parent 0dbbd38 commit c21ce09

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
@@ -578,7 +578,7 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} rootDir que = do
578578
-- Typecheck all files in the project on startup
579579
checkProject <- getCheckProject
580580
unless (null new_deps || not checkProject) $ do
581-
cfps' <- liftIO $ filterM (IO.doesFileExist . fromNormalizedFilePath) (concatMap targetLocations all_targets)
581+
cfps' <- liftIO $ filterM (IO.doesFileExist . fromNormalizedFilePath) (nub $ concatMap targetLocations all_targets)
582582
void $ shakeEnqueue extras $ mkDelayedAction "InitialLoad" Debug $ void $ do
583583
mmt <- uses GetModificationTime cfps'
584584
let cs_exist = catMaybes (zipWith (<$) cfps' mmt)

0 commit comments

Comments
 (0)