* eglot.el (eglot-imenu): Don't append the result list to itself,
which causes duplicates.
(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)