@@ -84,15 +84,14 @@ import Data.Void
8484
8585import Control.Concurrent.STM.Stats (atomically , modifyTVar' ,
8686 readTVar , writeTVar )
87- import Control.Concurrent.STM.TQueue
8887import Control.Monad.Trans.Cont (ContT (ContT , runContT ))
8988import Data.Foldable (for_ )
9089import Data.HashMap.Strict (HashMap )
9190import Data.HashSet (HashSet )
9291import qualified Data.HashSet as Set
9392import Database.SQLite.Simple
9493import Development.IDE.Core.Tracing (withTrace )
95- import Development.IDE.Core.WorkerThread ( withWorkerQueue )
94+ import Development.IDE.Core.WorkerThread
9695import Development.IDE.Session.Dependency
9796import Development.IDE.Session.Diagnostics (renderCradleError )
9897import Development.IDE.Session.Ghc hiding (Log )
@@ -664,7 +663,7 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} rootDir que = do
664663 -- see Note [Serializing runs in separate thread]
665664 -- Start the 'getOptionsLoop' if the queue is empty
666665 liftIO $ atomically $
667- Extra. whenM (isEmptyTQueue que) $ do
666+ Extra. whenM (isEmptyTaskQueue que) $ do
668667 let newSessionLoadingOptions = SessionLoadingOptions
669668 { findCradle = cradleLoc
670669 , ..
@@ -684,7 +683,7 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} rootDir que = do
684683 , sessionLoadingOptions = newSessionLoadingOptions
685684 }
686685
687- writeTQueue que (runReaderT (getOptionsLoop recorder sessionShake sessionState knownTargetsVar) sessionEnv)
686+ writeTaskQueue que (runReaderT (getOptionsLoop recorder sessionShake sessionState knownTargetsVar) sessionEnv)
688687
689688 -- Each one of deps will be registered as a FileSystemWatcher in the GhcSession action
690689 -- so that we can get a workspace/didChangeWatchedFiles notification when a dep changes.
0 commit comments