-
-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Atom 1.21 added functionality to watch files and folders in specific paths for changes. We should use this to send the appropriate reindex events.
The core currently provides no mechanism to remove files from the index, it automatically prunes the index on every folder index as compensation. This, however, results in weird edge cases where you remove a file from the workspace, but the class inside it remains available for a while (because the core did not pick it up yet).
In a language server scenario, the client has to do all the watching and send the appropriate events to the server anyway, so this is a step in the right direction in any case.
This will also obsolete the need for watching the Git repository for changes, though we'll have to test how this behaves with branch switching via Git.