Skip to content

Commit e10d135

Browse files
committed
push known targets back to session restart
1 parent 013650b commit e10d135

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
@@ -613,10 +613,10 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} dir = do
613613

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))
616-
key1 <- extendKnownTargets all_targets
617616
-- The VFS doesn't change on cradle edits, re-use the old one.
618617
-- Invalidate all the existing GhcSession build nodes by restarting the Shake session
619618
restartShakeSession VFSUnmodified "new component" [] $ do
619+
key1 <- extendKnownTargets all_targets
620620
key2 <- invalidateShakeCache
621621
return [key1, key2]
622622

0 commit comments

Comments
 (0)