-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Allow createFileSystemWatcher
with custom exclude rules
#169724
Comments
Would this allow passing To give more detail – the extension is wrapping a testing library, which selects test files using Parsing the config file and passing If I get it right, Thanks for the job you do! |
Yes, I think the idea would be for an extension to have full |
Can't wait for this -- I've tried adding not/exclude patterns in the |
I'd love to see support for an array with multiple exclude globs. This has been a major pain point for me with the current findFiles API which only supports a single glob: #38545 We can sort of hack together some custom logic to combine globs into a single string, but it's super brittle and can fail in unintuitive ways, and doesn't play nicely with the RelativePattern helper. |
Proposal: vscode/src/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts Lines 10 to 37 in 29b6943
|
Just a note that I confirmed today that #104251 is still not fixed. It was closed as a duplicate of another issue which was also closed but is not enough to fix the issue. This issue (here) seems to be a potential solution so just wanted to make sure that the issue I reported gets tested once this issue is fixed, or at least linked to this one. |
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding, and happy coding! |
Given our very bad experience with running multiple overlapping file watchers on the same folders, this is unlikely to happen. Quite the opposite, in the future its more likely to have 1 recursive watcher per folder-tree that has no excludes and then implement dispatching from there to anyone interested based on glob patterns. |
Given we make good progress on #137872 we could enrich our file watcher API to allow an extension to provide glob patterns for exclude rules. We can then push these rules down directly to Parcel.
Some things to consider:
createFileSystemWatcher
overload acceptingoptions
The text was updated successfully, but these errors were encountered: