]> git.eshelyaron.com Git - emacs.git/commit
Make publishDiagnostics faster by using cached variable
authorTheodor Thornhill <theo@thornhill.no>
Fri, 19 Apr 2024 18:40:25 +0000 (20:40 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 20 Apr 2024 11:08:55 +0000 (14:08 +0300)
commite149a4c007b2b9b85e5ee58bd1526fcabd97661a
tree2313054b05af18c536e58097ee38ce5274af61d9
parent1f8bb97ced9c67c331f9ce16643bc486f6a4e99d
Make publishDiagnostics faster by using cached variable

* lisp/progmodes/eglot.el (eglot--cached-tdi): Move variable.
(eglot-handle-notification): Expose 'server' and search through managed
buffers for a cached textDocumentIdentifier, which has a file-truename
resolved path.
* test/lisp/progmodes/eglot-tests.el (eglot-test-basic-symlink): Add
regression test for symlink behavior

(cherry picked from commit 49ef173b0287e17273e4476df16dca5f2196b11c)
lisp/progmodes/eglot.el
test/lisp/progmodes/eglot-tests.el