Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to assume that the editor is the only source of changes to files? #14

Open
TysonAndre opened this issue Feb 22, 2018 · 0 comments

Comments

@TysonAndre
Copy link
Owner

E.g. don't traverse configured files in directory_list such as vendor/, etc, checking for changes to modification date or file size every time there is a change that needs to be analyzed.

Skipping this should bring down latency somewhat, especially without SSDs

  • Maybe re-check at most once per 60 seconds instead of every time.

This requires changes to the backend (only for language server, not for phan's earlier Daemon classes)

didOpen/didChange/didClose/rename/etc should be sufficient for most uses.

This may require refactoring the server to be able to check a single file against a list of inclusions and exclusions.


Switching between git branches would break this assumption.
Maybe didChangeWatchedFiles might help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant