-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support LSP General Progress method #125
Comments
So I just looked into this a bit. lsp4j was recently updated to cover a large portion of 3.15, but unfortunately it looks like General Progress Support is not yet integrated eclipse-lsp4j/lsp4j#397 There is also a current issues for it here |
Does the progress notification support all the use-cases we have for metals/status? For example, we use it to display warnings like that there's no imported build. |
My initial thought after looking through it is no. General Progress Support seems to be a very general approach to what we are using |
An important feature of We can probably fallback to |
So I might be revisiting this. I've tried getting EDIT: Although it seems Neovim core doesn't support |
@ckipp01 Did you ever get around to experimenting further? I saw that you added support for |
So I did look into it a bit, but the way we do progress with metals status is sort of intertwined in more places than I thought. I don't think it'd be a super difficult change, but one that I wasn't able to do quickly so I sort of never returned. This would be a great standalone task for someone looking to contribute to metals. |
Hey I'm willing to work on this. Where should I look for to make this happen? |
@ckipp01 Am I correct assuming that we need support for this in lsp4j first? We are using the |
The interface should work ok, those unsupported exceptions are just the defaults, but with the correct client connected this should work ok. I think the ideal situation is replacing slow task that we use for example for NewProjectProvider. If you are interested @PeuTit I would start with experimenting with that part. The part we want to replace is the Let me know if you need any help! |
Created an initial PoC here which is working nicely for me with Helix, feedback appreciated :) scalameta/metals#6055 |
With scalameta/metals#6055 merged this should now be fixed |
LSP Spec since 3.15 defines General Progress Support among other things.
It would be nice for Metals to migrate the status bar notifications to this protocol if possible sparing clients one custom endpoint.
Search terms
LSP, spec, status bar, notification
The text was updated successfully, but these errors were encountered: