Ghcide: Don't show "Progress: x/y" messages until the session/cradle has been setup

Created on 23 Jul 2020  路  4Comments  路  Source: haskell/ghcide

Currently the progress message from #644 gets shadowed by the Shake reporting messages that say "Progress: 陆", an example is in this link: https://streamable.com/nqbcfk
It would probably be more clear to the user if we hold off sending the work done progress report until the session is finished setting up.

Most helpful comment

Just blame Pepe Iborra 馃槀

All 4 comments

Just blame Pepe Iborra 馃槀

Jokes aside, can we inform the lsp client about the relative priorities of these progress messages, so that it will show the initialisation progress in the status bar, rather than the shake progress?

@pepeiborra lol, I was wondering that as well though since it would be nice to not touch the shake progress. The state machine thing is set up quite nicely, and from what I can understand multiple sessions can be set up at once so I don't want to have to do loads of bookkeeping. Alas there doesn't seem to be anything in the specification for priority

What if we keep sending initialisation progress messages every 100ms or so? Will that help?

Was this page helpful?
0 / 5 - 0 ratings