diff options
| author | João Távora | 2025-12-16 17:45:36 +0000 |
|---|---|---|
| committer | João Távora | 2025-12-16 17:58:32 +0000 |
| commit | 06f31dc2d6305191bd35ad3e6017ba6e81a8b84d (patch) | |
| tree | 75333f3de211cd54f007538328dbcfe3f11599f9 /admin/notes/java | |
| parent | 645a6ba08108af15e89dd527bc3ea37f6c8f07eb (diff) | |
| download | emacs-06f31dc2d6305191bd35ad3e6017ba6e81a8b84d.tar.gz emacs-06f31dc2d6305191bd35ad3e6017ba6e81a8b84d.zip | |
Eglot: support relativePatternSupport for file watching (bug#79809)
Announce relativePatternSupport capability. Parse RelativePattern
objects with baseUri and pattern fields. Add defvar
eglot-watch-files-outside-project-root to control filtering.
Rewrote file watching implementation. Key by registration ID instead of
directory. Each LSP watchers item spawns directory watchers
indenpendently that will look for the associated pattern only.
This change needs (or at least is known to work more efficiently) with
the latest project.el, so we should bump it.
* lisp/progmodes/eglot.el (eglot-client-capabilities): Announce
relativePatternSupport for didChangeWatchedFiles.
(eglot-lsp-server): Change file-watches slot to ID-keyed structure.
(eglot-watch-files-outside-project-root): New defvar.
(eglot--watch-glob): New function.
(eglot-register-capability): Rewrite.
(eglot-unregister-capability): Simplified for ID-keyed structure.
(eglot--on-shutdown): Update watch cleanup.
Diffstat (limited to 'admin/notes/java')
0 files changed, 0 insertions, 0 deletions