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
introduce findFiles2 API #203844
introduce findFiles2 API #203844
Conversation
I like this and if this works well we should also target this for finalization. Looks like a small change that will help many extensions. In addition to |
I think, by default, this API and I'll probably bring this to the API sync because I have questions regarding how best to go about a 'first draft' of this API such that it can eventually be finalized. |
The current findFiles API does not allow for the caller to incorporate default excludes (
search.excludes
andfiles.excludes
) in addition to custom excludes. I currently don't have plans on finalizing this and having this replacefindFiles
in the near future, but copilot currently needs something like this to improve perf.You can test it via:
WIP, haven't written tests for this.
EDIT: for now, it seems to be fuzzy-searching. I will need to look into that. Perhaps I need to add an extra arg for fuzzy vs non-fuzzy searching in the internal API...
Fixes #204657