Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Per #131, #314: Be more conservative with the LSP identifier guess
If the user is not requesting a prompt, opt for the safer approach which is to get the location from textDocument/definition, not from workspace/symbol. Because of things like function overloading, the latter is not always successful in finding exactly the definition of the thing one is invoking M-. on. This requires using an xref-internal symbol, which is kind of unfortunate. * eglot.el (xref-backend-identifier-at-point): Rework. #131: joaotavora/eglot#131 #314: joaotavora/eglot#314
- Loading branch information