Why is any config file for ripgrep excluded using the --no-config flag in vscode?

515 Views Asked by At

In

src\vs\workbench\services\search\node\ripgrepFileSearch.ts:74

there is a command line flag for ripgrep to exclude any defined config files for ripgrep

args.push('--no-config');

Why is that there? What is the reasoning behind not respecting any settings a user might have for using ripgrep?

FYI: I'm asking this question because I have a lot of excluded folders (managed by my own extension) in my vscode files.exclude setting, which causes the ripgrep command to fail because of the lenght of the command for all the added ignored folders. I want to add these excluded files to a ripgrep configuration file, but due to the mentioned code that configuration is ignored.

0

There are 0 best solutions below