File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
ghcide/src/Development/IDE Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -762,12 +762,11 @@ delayedAction a = do
762762shakeRestart :: Recorder (WithPriority Log ) -> IdeState -> VFSModified -> String -> [DelayedAction () ] -> IO [Key ] -> IO ()
763763shakeRestart recorder IdeState {.. } vfs reason acts ioActionBetweenShakeSession = do
764764 barrier <- newBarrier
765- atomically $ writeTQueue (shakeOpQueue $ shakeExtras) $
765+ atomically $ writeTQueue (shakeOpQueue $ shakeExtras) $ do
766766 withMVar'
767767 shakeSession
768768 (\ runner -> do
769769 (stopTime,() ) <- duration $ logErrorAfter 10 $ cancelShakeSession runner
770- signalBarrier barrier ()
771770 keys <- ioActionBetweenShakeSession
772771 atomically $ modifyTVar' (dirtyKeys shakeExtras) $ \ x -> foldl' (flip insertKeySet) x keys
773772 res <- shakeDatabaseProfile shakeDb
@@ -782,6 +781,7 @@ shakeRestart recorder IdeState{..} vfs reason acts ioActionBetweenShakeSession =
782781 -- See https://github.com/haskell/ghcide/issues/79
783782 (\ () -> do
784783 (,() ) <$> newSession recorder shakeExtras vfs shakeDb acts reason)
784+ signalBarrier barrier ()
785785 waitBarrier barrier
786786 where
787787 logErrorAfter :: Seconds -> IO () -> IO ()
Original file line number Diff line number Diff line change @@ -341,6 +341,7 @@ defaultMain recorder Arguments{..} = withHeapStats (cmapWithPrio LogHeapStats re
341341 }
342342 caps = LSP. resClientCapabilities env
343343 monitoring <- argsMonitoring
344+
344345 ide <- initialise
345346 (cmapWithPrio LogService recorder)
346347 argsDefaultHlsConfig
You can’t perform that action at this time.
0 commit comments