Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joeyjyliu
Copy link

  • 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

* 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`
@jcs090218
Copy link
Member

Could you capture a screenshot or a GIF? I'd love to see how it looks! :)

@joeyjyliu
Copy link
Author

joeyjyliu commented Mar 26, 2025

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.
https://github.com/user-attachments/assets/fd42e4ff-720b-44e0-8221-328017dfcd0f

@jcs090218
Copy link
Member

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. 😅

@joeyjyliu
Copy link
Author

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).

@jcs090218
Copy link
Member

I'll leave it open for others to share their thoughts. ;)

@ericdallo
Copy link
Member

LGTM having it under a flag for now

@joeyjyliu
Copy link
Author

Merged with the latest master branch. I'd much appreciate it if someone can take a moment to review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants