From 7eb81031cd25562c7c566a34cce616fd0410e51d Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Sat, 30 Jan 2021 17:33:08 -0800 Subject: [PATCH] Add support for locationlink MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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