[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 24466a9 096/139: When killing server, always wait
From: |
João Távora |
Subject: |
[elpa] externals/eglot 24466a9 096/139: When killing server, always wait 3 seconds |
Date: |
Mon, 14 May 2018 09:55:01 -0400 (EDT) |
branch: externals/eglot
commit 24466a958563daf2803edc1f4b732c3e2412a06c
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
When killing server, always wait 3 seconds
* eglot.el (eglot--request): Accept TIMEOUT param.
---
eglot.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/eglot.el b/eglot.el
index 2e409ef..9ce7e26 100644
--- a/eglot.el
+++ b/eglot.el
@@ -552,10 +552,12 @@ is a symbol saying if this is a client or server
originated."
(cl-defun eglot--request (process
method
params
- &key success-fn error-fn timeout-fn (async-p t))
+ &key success-fn error-fn timeout-fn (async-p t)
+ (timeout eglot-request-timeout))
"Make a request to PROCESS, expecting a reply.
Return the ID of this request, unless ASYNC-P is nil, in which
-case never returns locally."
+case never returns locally. Wait TIMEOUT seconds for a
+response."
(let* ((id (eglot--next-request-id))
(timeout-fn (or timeout-fn
(lambda ()
@@ -583,7 +585,7 @@ case never returns locally."
(catch catch-tag
(let ((timeout-timer
(run-with-timer
- eglot-request-timeout nil
+ timeout nil
(if async-p
(lambda ()
(remhash id (eglot--pending-continuations process))
@@ -912,10 +914,12 @@ running. INTERACTIVE is t if called interactively."
:success-fn brutal
:async-p (not sync)
:error-fn brutal
- :timeout-fn brutal))
+ :timeout-fn brutal
+ :timeout 3))
:error-fn brutal
:async-p (not sync)
- :timeout-fn brutal)))
+ :timeout-fn brutal
+ :timeout 3)))
(cl-defun eglot--server-window/showMessage (_process &key type message)
"Handle notification window/showMessage"
- [elpa] externals/eglot ff5a03d 074/139: Very basic xref support, (continued)
- [elpa] externals/eglot ff5a03d 074/139: Very basic xref support, João Távora, 2018/05/14
- [elpa] externals/eglot e9b5e54 077/139: ETOOMANYLAMBDAS, João Távora, 2018/05/14
- [elpa] externals/eglot dda11dd 095/139: Try to fix some textDocument/completion bugs, João Távora, 2018/05/14
- [elpa] externals/eglot ea918ab 066/139: Include source info in diagnostics, João Távora, 2018/05/14
- [elpa] externals/eglot a199c8e 070/139: Honour textDocumentSync, João Távora, 2018/05/14
- [elpa] externals/eglot e86f9b4 073/139: New helper eglot--sync-request, João Távora, 2018/05/14
- [elpa] externals/eglot 1add335 078/139: Workaround two suspected Emacs bugs, João Távora, 2018/05/14
- [elpa] externals/eglot 889ef20 085/139: Tweak the async request engine., João Távora, 2018/05/14
- [elpa] externals/eglot 193c57d 075/139: Half-decent xref support, João Távora, 2018/05/14
- [elpa] externals/eglot fc6879f 084/139: Explain why didOpen on after-revert-hook is a bad idea, João Távora, 2018/05/14
- [elpa] externals/eglot 24466a9 096/139: When killing server, always wait 3 seconds,
João Távora <=
- [elpa] externals/eglot fceb6bb 090/139: Get rid of eglot--special-buffer-process, João Távora, 2018/05/14
- [elpa] externals/eglot d254f97 082/139: Solve another textDocument/didChange bug, João Távora, 2018/05/14
- [elpa] externals/eglot f257d63 089/139: * eglot.el: Reformat to shave off some lines., João Távora, 2018/05/14
- [elpa] externals/eglot c7bd095 118/139: Improve eglot-eldoc-function, João Távora, 2018/05/14
- [elpa] externals/eglot 3e0f1c3 122/139: Misc little adjustments for readability, João Távora, 2018/05/14
- [elpa] externals/eglot 3dcbc30 109/139: Add minimal headers, commentary and autoloads, João Távora, 2018/05/14
- [elpa] externals/eglot 71e47d2 102/139: Fix odd bugs and tweak stuff, João Távora, 2018/05/14
- [elpa] externals/eglot 05c67ee 112/139: Adjust flymake integration, João Távora, 2018/05/14
- [elpa] externals/eglot 9ff97a6 079/139: Increase request timeout length to 10 seconds, João Távora, 2018/05/14
- [elpa] externals/eglot 571b08f 076/139: Fix the odd bug here and there, João Távora, 2018/05/14