You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there are the following issues with FindFiles:
The exclude argument is quite overloaded, yet it doesn't allow for custom settings for force-including gitignore.
Since the proposed FindTextInFiles API has more options and should supposedly allow for use of gitignore, "include-ing" a file path overrides gitignore, so adding useGitIgnore to the options there and trying to match once per file to emulate a pseudo FindFiles behavior actually doesn't work if you want the "gitignore" to kick in.
Because of these problems, it might be time to have a new function signature for FindFiles, although for now, we can just make a proposed API so that internal products can adopt it soon.
Activity
andreamah commentedon Feb 9, 2024
You can test the new API with a code such as
See here for docs and options: https://github.com/microsoft/vscode/blob/90cebfaeb260263075f88dc2a8b97658942a09d7/src/vscode-dts/vscode.proposed.findFiles2.d.ts