-
-
Notifications
You must be signed in to change notification settings - Fork 908
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
Indicate active async requests via spinner in mode-line #4742
base: master
Are you sure you want to change the base?
Indicate active async requests via spinner in mode-line #4742
Conversation
* provide a visual indication as lsp is waiting for async responses. It's especially helpful when a large file is being opened. * add a new custom variable `lsp-display-pending-async-request-via-spinner`
Could you capture a screenshot or a GIF? I'd love to see how it looks! :) |
Here you go! This is the :moon spinner. We have a few large files that could take more than 20 seconds so it'd be nice to have some visual indications. |
I'm a little concerned that language servers making many small asynchronous requests could cause the spinner to flash constantly. 🤔 I wonder if this feature might be more distracting than helpful. 😅 |
That's a valid concern. If I remember correctly spinner would delay the display of spinner for a little bit to minimize the flicker. Moreover there is a new config to turn on/off this feature (by default off). |
I'll leave it open for others to share their thoughts. ;) |
LGTM having it under a flag for now |
Merged with the latest master branch. I'd much appreciate it if someone can take a moment to review it. |
lsp-display-pending-async-request-via-spinner