Open
Description
It seems that lsp-mode now creates file-watches for all the things in the projects root directory, which uses up resources and isn't always needed. For example, rls
registers delete/change/create watchers explicitly only for Cargo.lock
, Cargo.toml
plus a deletion watcher for the target/
directory. Instead of creating only three file watches, lsp-mode
decides to recursively watch files and directories from e.g. the target/
directory, which leads to errors like:
directory-files-recursively: Opening directory: No such file or directory, /somewhere/target/rls/debug/deps/rmeta31dHOO
Please correct me if I'm wrong, I haven't yet understood the file-watcher code in its entirety.