tag: 1.2
commit ff92d67cc79b33b845960ef50e5a73728dda7038
Author: Michał Krzywkowski <[email protected]>
Commit: Michał Krzywkowski <[email protected]>
Remove duplicates from imenu
* eglot.el (eglot-imenu): Don't append the result list to itself,
which causes duplicates.
---
eglot.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/eglot.el b/eglot.el
index a234e17..2b39849 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1664,12 +1664,10 @@ If SKIP-SIGNATURE, don't try to send
textDocument/signatureHelp."
(jsonrpc-request (eglot--current-server-or-lose)
:textDocument/documentSymbol
`(:textDocument
,(eglot--TextDocumentIdentifier))))))
- (append
- (cl-remove nil
- (seq-group-by (lambda (e) (get-text-property 0 :kind (car
e)))
- entries)
- :key #'car)
- entries))
+ (cl-remove nil
+ (seq-group-by (lambda (e) (get-text-property 0 :kind (car
e)))
+ entries)
+ :key #'car))
(funcall oldfun)))
(defun eglot--apply-text-edits (edits &optional version)