File tree Expand file tree Collapse file tree
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ tests = testGroup "shake restart merging"
3636 merged = mergePendingRestart p1 (Just p2)
3737
3838 pendingRestartReasons merged @?= [" r1" , " r2" ]
39- keys <- sequence $ pendingRestartActionBetweenSessions merged
39+ keys <- sequence $ reverse $ pendingRestartActionBetweenSessions merged
4040 concat keys @?= [key2, key1]
4141
4242 , testCase " RestartSlot coalescing" $ do
Original file line number Diff line number Diff line change @@ -889,7 +889,9 @@ withRestartWorker ide@IdeState{..} action =
889889 withAsync (forever $
890890 processPendingRestart (shakeRecorder shakeExtras) ide
891891 `catch` \ (e :: SomeException ) ->
892- logWith (shakeRecorder shakeExtras) Error (LogRestartWorkerException e)) $
892+ case fromException e of
893+ Just AsyncCancelled -> throwIO e
894+ _ -> logWith (shakeRecorder shakeExtras) Error (LogRestartWorkerException e)) $
893895 \ _ -> action
894896
895897processPendingRestart :: Recorder (WithPriority Log ) -> IdeState -> IO ()
You can’t perform that action at this time.
0 commit comments