]> git.eshelyaron.com Git - emacs.git/commit
Eglot: don't watch directories that don't exist
authorJoão Távora <joaotavora@gmail.com>
Sun, 2 Apr 2023 22:01:29 +0000 (23:01 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 2 Apr 2023 22:02:38 +0000 (23:02 +0100)
commit86cf9fd932c654cc502bedf634458a918ee5e9cb
tree499586ec7e8d92538e5dce3720294b9d5f743d4b
parent82d0b6c64eaaa5d7de2bb0653cec60fabada5643
Eglot: don't watch directories that don't exist

project-files isn't guaranteed to return existing files, so better
check if they exist because placing a watcher on them.

Originally reported at:
https://github.com/joaotavora/eglot/issues/1198

* lisp/progmodes/eglot.el (eglot-register-capability
workspace/didChangeWatchedFiles): Check if directories exist.
lisp/progmodes/eglot.el