Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow directory providers to implement a custom onDidChangeFiles #16080
Description of the Change
Atom has supported custom directory providers for quite a long time - the main use case being remote directories, e.g. in Nuclide (https://github.com/facebook/nuclide). The recent addition of file watchers causes several uncaught rejections when a remote directory is added, as it attempts to resolve remote URIs to create a file watcher.
To piggyback on the existing custom directory provider setup, we'll additionally allow custom directories to provide a
Another possibility is to suppress file watching for non-local URIs, but this approach allows for greater extensibility as well as real remote file watching if we wanted it. This also opens the interesting option of having the default
Why Should This Be In Core?
There's no other way for a user-land package to override the file watching APIs.
Improved compatibility with custom directory providers (in particular remote directories).
It's unclear how to better document this functionality. It seems that custom directory providers are generally underdocumented though?