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

Fix #218: Defer eglot-ensure until window-configuration-change #989

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

Commits on Jul 4, 2022

  1. Fix joaotavora#218: Defer eglot-ensure until window-configuration-change

    Some emacs users can open many buffers at a time.
    Packages like `desktop.el` and `persp-mode` encourage this.
    A user may also invoke eglot-ensure when each buffer starts.
    
    The effect of this - spawning hundreds of language-server processes -
    can crash the server and lag the system.
    
    Now, `eglot-ensure` waits until window-configuration-change time
    before starting `eglot--managed-mode`. Window-configuration-change
    time is when the user interacts with the local buffer's window UI.
    
    Used João Távora's idea to apply a pattern from flymake:
    https://github.com/emacs-straight/flymake/blob/6bc8782d9c05d4c9bbba524542d457e6a3b1734b/flymake.el#L1013
    
    Copyright-paperwork-exempt: Yes
    kimo-k committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    62f1499 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2022

  1. Configuration menu
    Copy the full SHA
    d89ba0f View commit details
    Browse the repository at this point in the history