-
Notifications
You must be signed in to change notification settings - Fork 184
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 API for registering an external file watcher implementation #1764
Conversation
from abc import abstractmethod | ||
|
||
|
||
DEFAULT_IGNORES = ['**/.git/**', '**/node_modules/**', '**/.hg/**'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be better if this were binary_file_patterns and/or index_exclude_patterns. But the glob syntax/features of ST is unfortunately incomplete compared to VSCode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't you need **/.svn/**
here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Someone is using SVN still? :)
I can add of course but was planning to look into fetching ignores from ST and converting to glob but that might turn out to be some work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Someone is using SVN still? :)
Unfortunately, yes, these companies exist ;) But I think it's okay to forget about it and focus on fetching the ignore list from ST instead.
On the high-level this seems fine? I'm open to nitpicking too. :) |
I’m quite busy with IRL responsibilities, will review maybe Thursday or Friday. But one thing I do miss is some sort of integration test with the test/server.py file. |
Yes, the api looks nice (not to many methods exposed and the one that are exposed are reasonably easy to understand) 🙂 |
I'll say it's ready for review although would be good to also handle ST's exclude patterns. Maybe it wouldn't be too hard to convert those to globs. |
Note:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you've put a lot of work into this.
Let's go ahead with this for now and work out the kinks. |
Allows to create external package that implements the file watcher API.
See example implementation at sublimelsp/LSP-file-watcher-chokidar#1