]> git.eshelyaron.com Git - emacs.git/commit
Make Eglot consider FileSystemWatcher.kind when watching files
authorBrian Leung <leungbk@posteo.net>
Tue, 2 Feb 2021 19:23:25 +0000 (11:23 -0800)
committerJoão Távora <joaotavora@gmail.com>
Fri, 11 Nov 2022 15:22:06 +0000 (15:22 +0000)
commitbe1745606354e8b34325bc9526c9bad9f7302cce
treeb5d56b975f2853681eb8d0e74f0aea4f9d9e05c4
parent6f48b46b03cd58a541684c57e42eb4679794f0fd
Make Eglot consider FileSystemWatcher.kind when watching files

bug#58677

* eglot.el (eglot-register-capability
  workspace/didChangeWatchedFiles): Rework

Only send notifications of interest, as determined by the optional LSP
FileSystemWatcher.kind bitmask provided by the server.

When the FileSystemWatcher.kind property is omitted, use the default
value of 7, which is computed from taking the bitwise OR operation
WatchKind.Create (1) | WatchKind.Change (2) | WatchKind.Delete (4).
lisp/progmodes/eglot.el