File tree 1 file changed +3
-2
lines changed
ghcide/src/Development/IDE/Core
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -942,8 +942,9 @@ indexHieFile se mod_summary srcPath !hash hf = do
942
942
Nothing -> pure Nothing
943
943
Just env -> LSP. runLspT env $ do
944
944
u <- LSP. ProgressToken . LSP. InR . T. pack . show . hashUnique <$> liftIO Unique. newUnique
945
- -- TODO: Wait for the progress create response to use the token
946
- _ <- LSP. sendRequest LSP. SMethod_WindowWorkDoneProgressCreate (LSP. WorkDoneProgressCreateParams u) (const $ pure () )
945
+ b <- liftIO newBarrier
946
+ void $ LSP. sendRequest LSP. SMethod_WindowWorkDoneProgressCreate (LSP. WorkDoneProgressCreateParams u) $ liftIO . signalBarrier b
947
+ ready <- liftIO $ waitBarrier b
947
948
LSP. sendNotification LSP. SMethod_Progress $ LSP. ProgressParams u $
948
949
toJSON $ LSP. WorkDoneProgressBegin
949
950
{ _kind = LSP. AString @ " begin"
You can’t perform that action at this time.
0 commit comments