File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -945,16 +945,15 @@ indexHieFile se mod_summary srcPath !hash hf = do
945
945
u <- LSP. ProgressToken . LSP. InR . T. pack . show . hashUnique <$> liftIO Unique. newUnique
946
946
b <- liftIO newBarrier
947
947
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
+ }
958
957
pure (Just u)
959
958
960
959
(! done, ! remaining) <- atomically $ do
You can’t perform that action at this time.
0 commit comments