Howdy!

I’m experiencing an issue with eglot and xref-find-definition in ada-mode. Maybe someone can help.

So this is the situation: sometimes when I use xref-find-definition lsp does not work, and xref asks for a TAGS file. However, at the same time I get a popup from eglot (I think), showing the definition. It appears the connection between eglot and xref is unstable. I want xref-find-definition to work all the time (don’t care about the popup really).

I’m using the following hook for eglot:

(add-hook 'prog-mode-hook #'eglot-ensure)

Any suggestions on what triggers this behavior or how I should debug this (I’m kind of an Emacs noob)?

Oh, and I’m using Emacs 29.3.