Skip to content

Indicate active async requests via spinner in mode-line - #4742

Closed
joeyjyliu wants to merge 2 commits into
emacs-lsp:masterfrom
joeyjyliu:indicate-async-request-via-spinner
Closed

joeyjyliu wants to merge 2 commits into
emacs-lsp:masterfrom
joeyjyliu:indicate-async-request-via-spinner

Conversation

@joeyjyliu

Copy link
Copy Markdown
  • 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
Copy Markdown
Member

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

@joeyjyliu

joeyjyliu commented Mar 26, 2025 •

Copy link
Copy Markdown
Author

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

@ericdallo

Copy link
Copy Markdown
Member

LGTM having it under a flag for now

@joeyjyliu

Copy link
Copy Markdown
Author

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

@joeyjyliu joeyjyliu closed this Jun 6, 2025
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