File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
ghcide/src/Development/IDE/Core
hls-cabal-plugin/src/Ide/Plugin
hls-eval-plugin/src/Ide/Plugin/Eval Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -766,8 +766,8 @@ shakeRestart recorder IdeState{..} vfs reason acts ioActionBetweenShakeSession =
766
766
shakeSession
767
767
(\ runner -> do
768
768
(stopTime,() ) <- duration $ logErrorAfter 10 $ cancelShakeSession runner
769
- res <- shakeDatabaseProfile shakeDb
770
769
ioActionBetweenShakeSession
770
+ res <- shakeDatabaseProfile shakeDb
771
771
backlog <- readTVarIO $ dirtyKeys shakeExtras
772
772
queue <- atomicallyNamed " actionQueue - peek" $ peekInProgress $ actionQueue shakeExtras
773
773
Original file line number Diff line number Diff line change @@ -130,9 +130,10 @@ needs to be re-parsed. That's what we do when we record the dirty key that our p
130
130
rule depends on.
131
131
Then we restart the shake session, so that changes to our virtual files are actually picked up.
132
132
-}
133
- restartCabalShakeSession :: ShakeExtras -> VFS. VFS -> NormalizedFilePath -> String -> IO ()
134
- restartCabalShakeSession shakeExtras vfs file actionMsg = do
135
- restartShakeSession shakeExtras (VFSModified vfs) (fromNormalizedFilePath file ++ " " ++ actionMsg) [] $
133
+ restartCabalShakeSession :: ShakeExtras -> VFS. VFS -> NormalizedFilePath -> String -> IO () -> IO ()
134
+ restartCabalShakeSession shakeExtras vfs file actionMsg actionBetweenSession = do
135
+ restartShakeSession shakeExtras (VFSModified vfs) (fromNormalizedFilePath file ++ " " ++ actionMsg) [] $ do
136
+ actionBetweenSession
136
137
join $ atomically $ Shake. recordDirtyKeys shakeExtras GetModificationTime [file]
137
138
138
139
-- ----------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -211,10 +211,8 @@ runEvalCmd recorder plId st mtoken EvalParams{..} =
211
211
212
212
-- enable codegen for the module which we need to evaluate.
213
213
final_hscEnv <- liftIO $ bracket_
214
- (do queueForEvaluation st nfp
215
- setSomethingModified VFSUnmodified st [toKey IsEvaluating nfp] " Eval" )
216
- (do unqueueForEvaluation st nfp
217
- setSomethingModified VFSUnmodified st [toKey IsEvaluating nfp] " Eval" )
214
+ (setSomethingModified VFSUnmodified st [toKey IsEvaluating nfp] " Eval" $ queueForEvaluation st nfp)
215
+ (setSomethingModified VFSUnmodified st [toKey IsEvaluating nfp] " Eval" $ unqueueForEvaluation st nfp)
218
216
(initialiseSessionForEval (needsQuickCheck tests) st nfp)
219
217
220
218
evalCfg <- liftIO $ runAction " eval: config" st $ getEvalConfig plId
You can’t perform that action at this time.
0 commit comments