diff options
| author | João Távora | 2026-01-16 00:52:49 +0000 |
|---|---|---|
| committer | João Távora | 2026-01-21 12:26:24 +0000 |
| commit | d3548aea9683736ed17ff49f144df6a8a7a8c56f (patch) | |
| tree | 1933db0fa6b301d8a6e392154c740afc27318fd2 /java | |
| parent | a3ea65a984ff8b27b3698045a682d51ddcf20fbc (diff) | |
| download | emacs-d3548aea9683736ed17ff49f144df6a8a7a8c56f.tar.gz emacs-d3548aea9683736ed17ff49f144df6a8a7a8c56f.zip | |
Eglot: limit the number of file watches
Some language servers request file watching for a very large number of
directories (e.g. Python virtualenvs), which can exhaust system
resources and cause slow startup.
https://github.com/joaotavora/eglot/issues/1568
* lisp/progmodes/eglot.el (eglot-max-file-watches): New variable.
(eglot--count-file-watches): New function.
(eglot--watch-globs): Use them to limit watches. Signal jsonrpc-error
when limit is reached.
(eglot-watch-files-outside-project-root): Fix docstring punctuation.
* etc/EGLOT-NEWS: Mention change.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions