Repository navigation
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.excludesandfiles.excludes) in addition to custom excludes. I currently don't have plans on finalizing this and having this replacefindFilesin 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