]> git.eshelyaron.com Git - emacs.git/commit
Revert "Don't use file-truepath in Eglot (bug#70036)"
authorJoão Távora <joaotavora@gmail.com>
Thu, 18 Apr 2024 08:55:17 +0000 (03:55 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sat, 20 Apr 2024 11:07:27 +0000 (14:07 +0300)
commitc6da051706942b7606cb69232bb693cf4ec1ede2
tree34219c1f600cd79f0b76887c00aa1a32cf876f33
parent69740d4dcec8a8d0f9737bcc47c71d2ee436d4c5
Revert "Don't use file-truepath in Eglot (bug#70036)"

This reverts commit 08c80c45ddea17df87fc768a39dff353ccc13d3b.

It introduces bugs when a project contains symlinked files.  The server
will be informed of duplicate documents which are really the same and it
frequently has no means to deduplicate such information.

This leads to bugs such as excessive textDocument/references to a
function.

* lisp/progmodes/eglot.el (eglot-lsp-server): Revert change.
(eglot-uri-to-path): Revert change.
(eglot--on-shutdown): Revert change.
(eglot--managed-mode): Revert change.
(eglot-handle-notification textDocument/publishDiagnostics): Revert change.

(cherry picked from commit 306feb7d967ecea9c916dd6e25b2e84a3f1c714e)
lisp/progmodes/eglot.el