helix icon indicating copy to clipboard operation
helix copied to clipboard

Make the LSP spinner... more spinny.

Open dpc opened this issue 2 years ago • 1 comments

I'm working on a fairly large Rust project and using rust-analyzer functionality in Helix a lot. Some actions take a while to kick in after called. Good example is "jump to workspace symbol". It's expected that it will be slow.

Helix has this "LSP working" indicator:

image

but it doesn't really spin much/at all when I'm waiting for the workspace symbol picker to show up, giving no indication if the editor registered the action.

There is already an issue to make the picker show immediately, which would be an improvement, but my enhancement request is more general one: for any actions this indicator should spin smoothly and continuously, instead of the current laggy/jerky/slow behavior. I'm guessing right now the update might be triggered by some requests/responses from the LSP itself, which kind of works but not all that well. Seems like enabling some timers that would trigger an update every 100ms or so if there are any outstanding LSP requests, would be better.

dpc avatar Nov 02 '23 19:11 dpc

https://github.com/helix-editor/helix/pull/6446

kirawi avatar Nov 02 '23 21:11 kirawi