"New sbt workspace detected" prompt is only shown for a brief moment before disappearing
Describe the bug
Hi,
I am not sure if this is an issue in Metals or nvim-metals or somewhere else, but when I open a new Scala project the "New sbt workspace detected" message/prompt appears for a brief moment and then mostly disappears leaving only the "Type number ..." section. See this video:
https://github.com/user-attachments/assets/a09fb7ac-2748-4ff0-9e6e-871451f689b7
Expected behavior
I expect the prompt to not disappear.
Operating system
macOS
Version of Metals
v1.5.2
Commit of nvim-metals
4610aceb97fbcf2b050220ee5f83527e5c1699c5
The same thing happens to the Java home has been updated, do you want to restart the sbt BSP server? prompt too.
Same experience using metals v1.6.0 with SBT: what I've found interesting is - Build import popup on configuration changes has been dismissed temporarily while running doctor. Resetting choice doesn't seem to have any effect
So I think this must be something with the way nvim is handling the showMessageRequest. Every once in a while I also see this, but I can never reliably reproduce it. Does this happen all the time for anyone else in a way that they can reproduce?
@ckipp01 - I can reproduce this every time. Let me know if I can enable some logging or try something out.
I also have this issue consistently