[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 74240c7 66/69: Protect against zero-length comple
From: |
João Távora |
Subject: |
[elpa] externals/eglot 74240c7 66/69: Protect against zero-length completions |
Date: |
Sun, 20 Oct 2019 08:21:55 -0400 (EDT) |
branch: externals/eglot
commit 74240c7dae22716c6925341d0e76fdc76f37190f
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Protect against zero-length completions
Apparently the Vue Language Server sends such things (see #319).
* eglot.el (eglot-completion-at-point): Protect against
zero-length completions.
---
eglot.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/eglot.el b/eglot.el
index aa64fe6..cba8c34 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1907,7 +1907,8 @@ is not active."
(string-trim-left label))
(t
(or insertText (string-trim-left
label))))))
- (put-text-property 0 1 'eglot--lsp-item item proxy)
+ (unless (zerop (length proxy))
+ (put-text-property 0 1 'eglot--lsp-item item proxy))
proxy))
items))
(bounds
- [elpa] externals/eglot d774754 37/69: Merge pull request #298 from jorams/nil-capabilities-as-false, (continued)
- [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
- [elpa] externals/eglot 74240c7 66/69: Protect against zero-length completions,
João Távora <=