File tree 1 file changed +3
-5
lines changed
ghcide/src/Development/IDE/Core
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ indexHieFile se mod_summary srcPath hash hf = atomically $ do
545
545
_ <- LSP. sendRequest LSP. SWindowWorkDoneProgressCreate (LSP. WorkDoneProgressCreateParams u) (const $ pure () )
546
546
LSP. sendNotification LSP. SProgress $ LSP. ProgressParams u $
547
547
LSP. Begin $ LSP. WorkDoneProgressBeginParams
548
- { _title = " Indexing references from: "
548
+ { _title = " Indexing references"
549
549
, _cancellable = Nothing
550
550
, _message = Nothing
551
551
, _percentage = Nothing
@@ -557,14 +557,12 @@ indexHieFile se mod_summary srcPath hash hf = atomically $ do
557
557
remaining <- HashMap. size <$> readTVar indexPending
558
558
pure (done, remaining)
559
559
560
- let progress = " (" <> T. pack (show done) <> " /" <> T. pack (show $ done + remaining) <> " )..."
561
-
562
560
whenJust (lspEnv se) $ \ env -> whenJust tok $ \ tok -> LSP. runLspT env $
563
561
LSP. sendNotification LSP. SProgress $ LSP. ProgressParams tok $
564
562
LSP. Report $ LSP. WorkDoneProgressReportParams
565
563
{ _cancellable = Nothing
566
- , _message = Just $ T. pack (fromNormalizedFilePath srcPath) <> progress
567
- , _percentage = Nothing
564
+ , _message = Nothing
565
+ , _percentage = Just ( 100 * fromIntegral done / fromIntegral (done + remaining) )
568
566
}
569
567
570
568
-- Report the progress once we are done indexing this file
You can’t perform that action at this time.
0 commit comments