Skip to content

Commit dc71a40

Browse files
committed
cleanup
1 parent dc18b74 commit dc71a40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,11 +614,11 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} dir = do
614614
void $ modifyVar' fileToFlags $ Map.insert hieYaml this_flags_map
615615
void $ modifyVar' filesMap $ flip HM.union (HM.fromList (map ((,hieYaml) . fst) $ concatMap toFlagsMap all_targets))
616616
key1 <- extendKnownTargets all_targets
617-
key2 <- invalidateShakeCache
618617
-- The VFS doesn't change on cradle edits, re-use the old one.
618+
-- Invalidate all the existing GhcSession build nodes by restarting the Shake session
619619
restartShakeSession VFSUnmodified "new component" [] $ do
620+
key2 <- invalidateShakeCache
620621
return [key1, key2]
621-
-- Invalidate all the existing GhcSession build nodes by restarting the Shake session
622622

623623
-- Typecheck all files in the project on startup
624624
checkProject <- getCheckProject

0 commit comments

Comments
 (0)