We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f06cae0 commit 3d60ddcCopy full SHA for 3d60ddc
src/Development/IDE/Core/Shake.hs
@@ -325,6 +325,9 @@ shakeOpen getLspId eventer logger shakeProfileDir (IdeReportProgress reportProgr
325
326
lspShakeProgress :: Show a => IO LSP.LspId -> (LSP.FromServerMessage -> IO ()) -> Var (Map a Int) -> IO ()
327
lspShakeProgress getLspId sendMsg inProgress = do
328
+ -- first sleep a bit, so we only show progress messages if it's going to take
329
+ -- a "noticable amount of time" (we often expect a thread kill to arrive before the sleep finishes)
330
+ sleep 0.1
331
lspId <- getLspId
332
u <- ProgressTextToken . T.pack . show . hashUnique <$> newUnique
333
sendMsg $ LSP.ReqWorkDoneProgressCreate $ LSP.fmServerWorkDoneProgressCreateRequest
0 commit comments