* eglot.el (eglot-code-actions): Filter out non-eglot diagnostics
before sending a request to the server.
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/260
:end (eglot--pos-to-lsp-position end))
:context
`(:diagnostics
- [,@(mapcar (lambda (diag)
- (cdr (assoc 'eglot-lsp-diag
- (eglot--diag-data diag))))
- (flymake-diagnostics beg end))]))))
+ [,@(cl-loop for diag in (flymake-diagnostics beg end)
+ when (cdr (assoc 'eglot-lsp-diag (eglot--diag-data diag)))
+ collect it)]))))
(menu-items
(or (mapcar (jsonrpc-lambda (&rest all &key title &allow-other-keys)
(cons title all))