Files
neovim/runtime/lua/vim
Mathias Fußenegger de28a0f84c perf(lsp): replace file polling on linux with per dir watcher (#26108)
Should help with https://github.com/neovim/neovim/issues/23291

On linux `new_fs_event` doesn't support recursive watching, but we can
still use it to watch folders.

The downside of this approach is that we may end up sending some false
`Deleted` events. For example, if you save a file named `foo` there will
be a intermediate `foo~` due to the save mechanism of neovim.

The events we get from vim.uv in that case are:

- rename: foo~
- rename: foo~
- rename: foo
- rename: foo
- change: foo
- change: foo

The mechanism in this PR uses a debounce to reduce this to:

- deleted: foo~
- changed: foo

`foo~` will be the false positive.
I suspect that for the LSP case this is good enough. If not, we may need
to follow up on this and keep a table in memory that tracks available
files.
2023-11-19 14:25:32 +01:00
..
2023-11-04 12:55:25 +01:00
2023-09-20 13:42:41 +01:00
2023-10-21 08:51:26 +02:00
2023-09-14 08:23:01 -05:00
2023-09-14 08:23:01 -05:00
2023-09-20 13:42:41 +01:00
2023-09-23 23:46:45 +01:00
2023-09-04 22:42:47 +02:00
2023-09-23 23:46:45 +01:00
2023-09-20 04:15:23 -07:00
2023-11-16 11:35:54 -06:00
2023-09-14 08:23:01 -05:00
2023-09-23 23:46:45 +01:00