[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot c648c4f 08/15: Robustness fixes for the request m
From: |
João Távora |
Subject: |
[elpa] externals/eglot c648c4f 08/15: Robustness fixes for the request mechanism |
Date: |
Sun, 20 May 2018 19:59:03 -0400 (EDT) |
branch: externals/eglot
commit c648c4f07fad16b1aa4dbe850b9b5cd70fe8a0ce
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Robustness fixes for the request mechanism
* eglot.el (eglot--async-request): Pass actual id to eglot--log-event
(eglot--request): Also cancel any continuations.
---
eglot.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/eglot.el b/eglot.el
index a5c4696..13d0086 100644
--- a/eglot.el
+++ b/eglot.el
@@ -640,7 +640,7 @@ TIMER)."
(funcall (or timeout-fn
(lambda ()
(eglot--log-event
- proc `(:timed-out ,method :id id
+ proc `(:timed-out ,method :id ,id
:params ,params)))))))))))
(when deferred
(let* ((buf (current-buffer))
@@ -703,7 +703,9 @@ DEFERRED is passed to `eglot--async-request', which see."
,(format "Ooops: %s: %s" code
message))))
:deferred deferred))
(while t (accept-process-output nil 30)))
- (when (cadr id-and-timer) (cancel-timer (cadr id-and-timer))))))
+ (pcase-let ((`(,id ,timer) id-and-timer))
+ (when id (remhash id (eglot--pending-continuations proc)))
+ (when timer (cancel-timer timer))))))
(when (eq 'error (car res)) (eglot--error (cadr res)))
(cadr res)))
- [elpa] externals/eglot updated (8e5acb1 -> 24877ae), João Távora, 2018/05/20
- [elpa] externals/eglot c648c4f 08/15: Robustness fixes for the request mechanism,
João Távora <=
- [elpa] externals/eglot 3f6d2e2 04/15: Close #4: Collect regions to change as markers, then edit, João Távora, 2018/05/20
- [elpa] externals/eglot a91d72c 01/15: Simplify some infrastructure fucntions, João Távora, 2018/05/20
- [elpa] externals/eglot 258fb98 12/15: Travis now runs python-language-server tests, João Távora, 2018/05/20
- [elpa] externals/eglot 99686a9 11/15: * eglot.el (Version): Bump to 0.4, João Távora, 2018/05/20
- [elpa] externals/eglot 6894ed7 13/15: Tweak tests, hopefully stabilize pyls tests on Travis, João Távora, 2018/05/20
- [elpa] externals/eglot 4b9f4da 03/15: If we're going to send rootPath, better send an absolute one, João Távora, 2018/05/20
- [elpa] externals/eglot 2ede684 06/15: Better decide what text exactly to present as completions, João Távora, 2018/05/20
- [elpa] externals/eglot 17b7740 05/15: * eglot.el (eglot-clear-status): Remember to update modeline, João Távora, 2018/05/20
- [elpa] externals/eglot b45cb80 02/15: Robustify timer handling for eglot--async-request, João Távora, 2018/05/20
- [elpa] externals/eglot ace6fce 07/15: Check capabilities before sending :completionItem/resolve, João Távora, 2018/05/20