Skip to content

Commit 5200f7b

Browse files
committed
don't send begin progress notification twice
1 parent 6d33ac1 commit 5200f7b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Language/LSP/Server/Core.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -597,11 +597,6 @@ withProgressBase indefinite title cancellable f = do
597597
Left _err -> pure ()
598598
Right () -> pure ()
599599

600-
-- Send initial notification
601-
sendNotification SProgress $
602-
fmap Begin $ ProgressParams progId $
603-
WorkDoneProgressBeginParams title (Just cancellable') Nothing initialPercentage
604-
605600
-- Send the begin and done notifications via 'bracket_' so that they are always fired
606601
res <- withRunInIO $ \runInBase ->
607602
E.bracket_

0 commit comments

Comments
 (0)