This will prevent C-u M-x eglot RET rust-analyzer from bringing into
play the eglot-rls server class, which is only valid for the default
RLS server.
Found when testing for https://github.com/joaotavora/eglot/issues/526, though this bug might not necessarily be
the problem being reported there.
* eglot.el (eglot--guess-contact): Don't assume guessed class if
INTERACTIVE.
(guess (if (functionp guess)
(funcall guess interactive)
guess))
- (class (or (and (consp guess) (symbolp (car guess))
+ (class (or (and (not interactive)
+ (consp guess) (symbolp (car guess))
(prog1 (car guess) (setq guess (cdr guess))))
'eglot-lsp-server))
(program (and (listp guess)