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

Don't block within lsp-request-while-no-input #4050

Merged
merged 1 commit into from
May 15, 2023
Merged

Don't block within lsp-request-while-no-input #4050

merged 1 commit into from
May 15, 2023

Conversation

sebastiansturm
Copy link
Contributor

lsp-request-while-no-input currently may block (if non-essential is set to nil), which seems to be both at odds with the function name itself, and can be very annoying when called during autocompletion (which AFAICT, is currently the only user of lsp-request-while-no-input). With this PR, lsp-request-while-no-input will always abort on user input. If desired, the former behavior can be restored by setting the newly introduced defcustom lsp-request-while-no-input-may-block to t.

blocking seems to be at odds with the function name, and can
be annoying if the language server fails to respond to a
completion request (which is currently the only request
handled by `lsp-request-while-no-input`). To restore the
former behavior (of having lsp-request-while-no-input block
whenever non-essential is nil), set the newly introduced
defcustom `lsp-request-while-no-input-may-block` to t.
@yyoncho yyoncho merged commit e92475a into emacs-lsp:master May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants