File tree 1 file changed +7
-3
lines changed
ghcide/session-loader/Development/IDE
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -799,7 +799,8 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} rootDir = do
799
799
IdeOptions { optCheckProject = getCheckProject} <- getIdeOptions
800
800
returnWithVersion $ \ file -> do
801
801
-- only one cradle consult at a time
802
- async <- UnliftIO. async $ UnliftIO. withMVar cradleLock $ const $ do
802
+
803
+ UnliftIO. mask_ $ UnliftIO. withMVar cradleLock $ const $ do
803
804
-- we need to find a way to get rid of the (files, keys)
804
805
_opts@ (a, b, _files, _keys) <- use_ HieYaml file
805
806
files <- liftIO $ atomically $ swapTVar targetFiles []
@@ -808,9 +809,12 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} rootDir = do
808
809
liftIO $ when (notNull files || notNull keys) $ do
809
810
checkProject <- getCheckProject
810
811
-- think of not to restart a second time
811
- restartShakeSession VFSUnmodified " new component" (if checkProject then return (typecheckAll files) else mempty ) $ pure keys
812
+ async <- UnliftIO. async $ restartShakeSession VFSUnmodified " new component" (if checkProject then return (typecheckAll files) else mempty ) $ pure keys
813
+ UnliftIO. wait async
812
814
pure $ (fmap . fmap ) toAbsolutePath (a, b)
813
- UnliftIO. wait async)
815
+
816
+ -- UnliftIO.wait async
817
+ )
814
818
815
819
816
820
-- | Run the specific cradle on a specific FilePath via hie-bios.
You can’t perform that action at this time.
0 commit comments