We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad87af6 commit 064e6deCopy full SHA for 064e6de
src/Development/IDE/Core/Shake.hs
@@ -412,9 +412,11 @@ shakeRun IdeState{shakeExtras=ShakeExtras{..}, ..} acts =
412
let logMsg = logDebug logger $ T.pack $
413
"Finishing shakeRun (took " ++ showDuration runTime ++ ", " ++ res' ++ profile ++ ")"
414
return (fst <$> res, logMsg)
415
- let wrapUp (res, logMsg) = do
416
- () <- logMsg
+ let wrapUp (res, _) = do
417
either (throwIO @SomeException) return res
+ _ <- async $ do
418
+ (_, logMsg) <- wait aThread
419
+ logMsg
420
pure (cancel aThread, wrapUp =<< wait aThread))
421
422
getDiagnostics :: IdeState -> IO [FileDiagnostic]
0 commit comments