@@ -57,7 +57,7 @@ module Development.IDE.Core.Shake(
57
57
FileVersion (.. ),
58
58
updatePositionMapping ,
59
59
updatePositionMappingHelper ,
60
- deleteValue , recordDirtyKeys ,
60
+ deleteValue ,
61
61
WithProgressFunc , WithIndefiniteProgressFunc ,
62
62
ProgressEvent (.. ),
63
63
DelayedAction , mkDelayedAction ,
@@ -569,15 +569,6 @@ deleteValue ShakeExtras{dirtyKeys, state} key file = do
569
569
return [toKey key file]
570
570
571
571
572
- recordDirtyKeys
573
- :: ShakeExtras
574
- -> [Key ]
575
- -> STM (IO () )
576
- recordDirtyKeys ShakeExtras {dirtyKeys} keys = do
577
- modifyTVar' dirtyKeys $ \ x -> foldl' (flip insertKeySet) x keys
578
- return $ withEventTrace " recordDirtyKeys" $ \ addEvent -> do
579
- addEvent (fromString $ unlines $ " dirty " : map show keys)
580
-
581
572
-- | We return Nothing if the rule has not run and Just Failed if it has failed to produce a value.
582
573
getValues ::
583
574
forall k v .
@@ -766,7 +757,7 @@ shakeRestart recorder IdeState{..} vfs reason acts ioActionBetweenShakeSession =
766
757
(\ runner -> do
767
758
(stopTime,() ) <- duration $ logErrorAfter 10 $ cancelShakeSession runner
768
759
keys <- ioActionBetweenShakeSession
769
- join $ atomically $ recordDirtyKeys shakeExtras keys
760
+ atomically $ modifyTVar' (dirtyKeys shakeExtras) $ \ x -> foldl' ( flip insertKeySet) x keys
770
761
res <- shakeDatabaseProfile shakeDb
771
762
backlog <- readTVarIO $ dirtyKeys shakeExtras
772
763
queue <- atomicallyNamed " actionQueue - peek" $ peekInProgress $ actionQueue shakeExtras
0 commit comments