]> git.eshelyaron.com Git - emacs.git/commit
Add support for locationlink
authorBrian Leung <bkleung89@gmail.com>
Sun, 31 Jan 2021 01:33:08 +0000 (17:33 -0800)
committerJoão Távora <joaotavora@gmail.com>
Wed, 21 Jul 2021 23:23:42 +0000 (00:23 +0100)
commit7eb81031cd25562c7c566a34cce616fd0410e51d
tree17dc55552631e7e131505f52258bae7d7772bb17
parentf07df485c678d8318e896fea9d549d5742d01898
Add support for locationlink

Fix https://github.com/joaotavora/eglot/issues/711.

LocationLink was added in version 3.14 of the protocol and is
sometimes used in lieu of Location for definition- and
reference-related requests.

* eglot.el (eglot--lsp-interface-alist): Update with LocationLink.
(eglot-client-capabilities): Advertise
textDocument.{definition,declaration,implementation,typeDefinition}.linkSupport.
(eglot--lsp-xrefs-for-method): Accept LocationLinks.

Co-authored-by: João Távora <joaotavora@gmail.com
GitHub-reference: close https://github.com/joaotavora/eglot/issues/712
lisp/progmodes/eglot.el