Skip to content

Commit edd3b0d

Browse files
committed
record changes to GetKnownTargets
1 parent b009729 commit edd3b0d

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
@@ -252,7 +252,6 @@ loadSessionWithOptions SessionLoadingOptions{..} dir = do
252252

253253
IdeOptions{ optTesting = IdeTesting optTesting
254254
, optCheckProject = getCheckProject
255-
, optModifyDynFlags
256255
, optExtensions
257256
} <- getIdeOptions
258257

@@ -266,6 +265,7 @@ loadSessionWithOptions SessionLoadingOptions{..} dir = do
266265
TargetModule _ -> do
267266
found <- filterM (IO.doesFileExist . fromNormalizedFilePath) targetLocations
268267
return (targetTarget, found)
268+
recordDirtyKeys extras GetKnownTargets [emptyFilePath]
269269
modifyVarIO' knownTargetsVar $ traverseHashed $ \known -> do
270270
let known' = HM.unionWith (<>) known $ HM.fromList $ map (second Set.fromList) knownTargets
271271
when (known /= known') $

0 commit comments

Comments
 (0)