From 749e83c57c6e51a8111c0a960e6ac56a69238db4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sat, 19 May 2018 17:04:46 +0100 Subject: [PATCH] Add some completion tests for pyls * 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 5829aff59b6..e9da5231696 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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 -- 2.39.2