[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OSX FSEvents file watching support
From: |
Eli Zaretskii |
Subject: |
Re: OSX FSEvents file watching support |
Date: |
Thu, 18 Jul 2019 18:28:49 +0300 |
> Date: Thu, 18 Jul 2019 08:14:33 -0700
> From: "Muir Manders" <address@hidden>
> Cc: address@hidden
>
> lsp-mode in particular needs to watch your entire source code project for
> file changes and then relay the file names that were created/modified/deleted
> fo the LSP server. This is to handle when files change outside the editor,
> like when changing branches. The LSP server registers file globs for the
> types of files it wants to receive notifications for, which is normally just
> the source code files and maybe some project metadata files (e.g. "**/*.go"
> to watch Go files). The LSP spec delegates file watching to the editor
> because file watching is hard, and in general there are fewer LSP clients
> (editors) than LSP servers.
>
> The current (kqueue, at least) backends must open many file descriptors to
> watch a large directory tree. FSEvents however can do this task efficiently.
Beware: like I said earlier, I don't expect these facilities to be
scalable enough for watching large trees that get a lot of frequent
changes. AFAIK, lsp-mode developers recommend to turn off file
notifications when there are a lot of them.
- Re: OSX FSEvents file watching support, (continued)
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
- Re: OSX FSEvents file watching support, Eli Zaretskii, 2019/07/18
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
- Re: OSX FSEvents file watching support, Eli Zaretskii, 2019/07/18
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
- Re: OSX FSEvents file watching support, Stefan Monnier, 2019/07/18
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
- Re: OSX FSEvents file watching support, Eli Zaretskii, 2019/07/18
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
- Re: OSX FSEvents file watching support, Muir Manders, 2019/07/18
- Re: OSX FSEvents file watching support,
Eli Zaretskii <=
- Re: OSX FSEvents file watching support, Michael Albinus, 2019/07/18
Re: OSX FSEvents file watching support, Muir Manders, 2019/07/18
Re: OSX FSEvents file watching support, Mattias Engdegård, 2019/07/18