`build/taskProgress` aren't forwarded when status bar is "off"
ckipp01 opened this issue · comments
Describe the bug
When turning off the status bar an LSP client isn't forwarded the actual progress updates from the build server. You can see here:
That when the task start happens it finds the compilation and calls trackFuture
. It's in here that the actual check for "off" is and the progess is created and both the create
and notify
is done one right after the other:
metals/metals/src/main/scala/scala/meta/internal/metals/StatusBar.scala
Lines 119 to 145 in 9855505
Notice that the end
is sent once the promise is completed. If you then look at what happens when a build/taskProgress
comes in:
The progress
gets updated, but this will never actual be forwarded to the LSP client since there is no mechanism to check the queue and send them. There is a tick mechanism that at times updates the metals status, but doesn't send progress notifications.
Expected behavior
I'd expect that upon receiving a build/taskProgress
with a compilation % that it would be forwarded to the LSP client.
Operating system
macOS
Editor/Extension
Nvim (nvim-metals)
Version of Metals
1.2.2+55-9855505a-SNAPSHOT
Extra context or search terms
No response
I think this: #6144 will resolve that issue as well. So if you feel like reviewing, I encourage you.