]> git.eshelyaron.com Git - emacs.git/commitdiff
Add some completion tests for pyls
authorJoão Távora <joaotavora@gmail.com>
Sat, 19 May 2018 16:04:46 +0000 (17:04 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 19 May 2018 16:14:29 +0000 (17:14 +0100)
* eglot-tests.el (edebug): Require it.
(eglot--call-with-dirs-and-files): Simplify.
(eglot--call-with-test-timeout): Don't timeout if edebug.
(auto-detect-running-server, auto-reconnect): Skip unless rls is
found.
(basic-completions): New test.
(hover-after-completions): New failing test.

* eglot.el (eglot-eldoc-function): Force write
eldoc-last-message, for tests sake.

lisp/progmodes/eglot.el

index 5829aff59b67ce84ecd5b9f3c074efc13939b4ec..e9da523169643a582f33aaf50346be2a28ba5390 100644 (file)
@@ -1429,8 +1429,8 @@ If SKIP-SIGNATURE, don't try to send textDocument/signatureHelp."
          proc :textDocument/hover position-params
          :success-fn (eglot--lambda (&key contents range)
                        (unless sig-showing
-                         (when-buffer-window
-                          (eldoc-message (eglot--hover-info contents range)))))
+                         (setq eldoc-last-message (eglot--hover-info contents range))
+                         (when-buffer-window (eldoc-message eldoc-last-message))))
          :deferred :textDocument/hover))
       (when (eglot--server-capable :documentHighlightProvider)
         (eglot--async-request