Skip to content

Commit 0cdeaaa

Browse files
committed
fix
1 parent f6f7891 commit 0cdeaaa

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

ghcide/src/Development/IDE/Core/Compile.hs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -945,16 +945,15 @@ indexHieFile se mod_summary srcPath !hash hf = do
945945
u <- LSP.ProgressToken . LSP.InR . T.pack . show . hashUnique <$> liftIO Unique.newUnique
946946
b <- liftIO newBarrier
947947
void $ LSP.sendRequest LSP.SMethod_WindowWorkDoneProgressCreate (LSP.WorkDoneProgressCreateParams u) $ liftIO . signalBarrier b
948-
liftIO $ async $ do
949-
_ready <- waitBarrier b
950-
LSP.runLspT env $ LSP.sendNotification LSP.SMethod_Progress $ LSP.ProgressParams u $
951-
toJSON $ LSP.WorkDoneProgressBegin
952-
{ _kind = LSP.AString @"begin"
953-
, _title = "Indexing"
954-
, _cancellable = Nothing
955-
, _message = Nothing
956-
, _percentage = Nothing
957-
}
948+
_ready <- liftIO $ waitBarrier b
949+
LSP.runLspT env $ LSP.sendNotification LSP.SMethod_Progress $ LSP.ProgressParams u $
950+
toJSON $ LSP.WorkDoneProgressBegin
951+
{ _kind = LSP.AString @"begin"
952+
, _title = "Indexing"
953+
, _cancellable = Nothing
954+
, _message = Nothing
955+
, _percentage = Nothing
956+
}
958957
pure (Just u)
959958

960959
(!done, !remaining) <- atomically $ do

0 commit comments

Comments
 (0)