[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 124a833 56/69: Add a test for #311 and #279
From: |
João Távora |
Subject: |
[elpa] externals/eglot 124a833 56/69: Add a test for #311 and #279 |
Date: |
Sun, 20 Oct 2019 08:21:52 -0400 (EDT) |
branch: externals/eglot
commit 124a8336b2102f62f32e3f3475f51c78e0492062
Author: Felicián Németh <address@hidden>
Commit: João Távora <address@hidden>
Add a test for #311 and #279
* eglot-tests.el (snippet-completions): New test.
---
Makefile | 1 +
eglot-tests.el | 14 ++++++++++++++
2 files changed, 15 insertions(+)
diff --git a/Makefile b/Makefile
index 9f4ed1a..fce089c 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,7 @@ ELCFILES := $(ELFILES:.el=.elc)
ELPADEPS ?=--eval '(package-initialize)' \
--eval '(package-refresh-contents)' \
--eval '(package-install (quote jsonrpc))' \
+ --eval '(package-install (quote yasnippet))' \
--eval '(package-install \
(cadr (assoc (quote flymake) \
package-archive-contents)))'
diff --git a/eglot-tests.el b/eglot-tests.el
index c01c699..2d9f783 100644
--- a/eglot-tests.el
+++ b/eglot-tests.el
@@ -461,6 +461,20 @@ Pass TIMEOUT to `eglot--with-timeout'."
(call-interactively 'xref-find-definitions)
(should (looking-at "foo(): pass")))))
+(ert-deftest snippet-completions ()
+ "Test simple snippet completion in a python LSP"
+ (skip-unless (and (executable-find "pyls")
+ (functionp 'yas-minor-mode)))
+ (eglot--with-fixture
+ '(("project" . (("something.py" . "setatt"))))
+ (with-current-buffer
+ (eglot--find-file-noselect "project/something.py")
+ (yas-minor-mode 1)
+ (should (eglot--tests-connect))
+ (goto-char (point-max))
+ (completion-at-point)
+ (should (looking-back "setattr(")))))
+
(ert-deftest hover-after-completions ()
"Test documentation echo in a python LSP"
(skip-unless (executable-find "pyls"))
- [elpa] externals/eglot f7a1bf6 49/69: Fix #236: much less noisy mode line, (continued)
- [elpa] externals/eglot f7a1bf6 49/69: Fix #236: much less noisy mode line, João Távora, 2019/10/20
- [elpa] externals/eglot 4c5d0d4 53/69: Misc improvements to the xref glue code, João Távora, 2019/10/20
- [elpa] externals/eglot 5ea4049 68/69: Fix #324: let user keep control of some variables during Eglot sessions, João Távora, 2019/10/20
- [elpa] externals/eglot 33a4f86 69/69: * eglot.el (Version): Bump to 1.5, João Távora, 2019/10/20
- [elpa] externals/eglot cf161b0 41/69: Test with emacs master on Travis, João Távora, 2019/10/20
- [elpa] externals/eglot 9e70cd2 40/69: * eglot-tests.el (python-autopep-formatting): Attempt to fix test., João Távora, 2019/10/20
- [elpa] externals/eglot c3bae0a 44/69: New test for the eglot-autoshutdown defcustom, João Távora, 2019/10/20
- [elpa] externals/eglot 28d8ffe 48/69: Fix #285: unbreak Elm language server which does use :triggerCharacters, João Távora, 2019/10/20
- [elpa] externals/eglot 06ff65d 52/69: Rework and correct major part of xref glue code, João Távora, 2019/10/20
- [elpa] externals/eglot 9951dc5 62/69: Add a test for vscode-json-languageserver's completions, João Távora, 2019/10/20
- [elpa] externals/eglot 124a833 56/69: Add a test for #311 and #279,
João Távora <=
- [elpa] externals/eglot d774754 37/69: Merge pull request #298 from jorams/nil-capabilities-as-false, João Távora, 2019/10/20
- [elpa] externals/eglot 20195e5 42/69: On buffer kill, first send didClose then teardown local structures, João Távora, 2019/10/20
- [elpa] externals/eglot 5a98c5a 55/69: Fix eglot-completion-at-point to work with bare completion-at-point, João Távora, 2019/10/20
- [elpa] externals/eglot 6a7ce66 32/69: Expand directory watcher globs containing ** (#293), João Távora, 2019/10/20
- [elpa] externals/eglot f45fdc6 31/69: Fix invalid guess for php language Server (#288), João Távora, 2019/10/20
- [elpa] externals/eglot 05c68c2 45/69: Don't send dummy JSON object in "initialized" notification (#312), João Távora, 2019/10/20
- [elpa] externals/eglot bff921e 60/69: Per #319: always filter completions client-side by prefix, João Távora, 2019/10/20
- [elpa] externals/eglot 260f152 65/69: Fix #321: don't choke on single-location reply to tD/definition, João Távora, 2019/10/20
- [elpa] externals/eglot 8a17c29 61/69: Close #235: play along with LSP's filterText hacks, João Távora, 2019/10/20
- [elpa] externals/eglot f5151be 67/69: Don't immediately request completions in eglot-completion-at-point, João Távora, 2019/10/20