Skip to content

Commit 36651b4

Browse files
committed
revert
1 parent 89ae61a commit 36651b4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -615,9 +615,10 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} dir = do
615615
void $ modifyVar' filesMap $ flip HM.union (HM.fromList (map ((,hieYaml) . fst) $ concatMap toFlagsMap all_targets))
616616
-- The VFS doesn't change on cradle edits, re-use the old one.
617617
-- Invalidate all the existing GhcSession build nodes by restarting the Shake session
618-
invalidateShakeCache
619-
-- The VFS doesn't change on cradle edits, re-use the old one.
620-
restartShakeSession VFSUnmodified "new component" []
618+
keys2 <- invalidateShakeCache
619+
restartShakeSession VFSUnmodified "new component" [] $ do
620+
keys1 <- extendKnownTargets all_targets
621+
return [keys1, keys2]
621622

622623
-- Typecheck all files in the project on startup
623624
checkProject <- getCheckProject

0 commit comments

Comments
 (0)