提交 0cbb71b7 编写于 作者: R Rob Lourens

Enable gitignore support by default

上级 6094fcfa
......@@ -293,8 +293,7 @@ function globExprsToRgGlobs(patterns: glob.IExpression): { globArgs: string[], s
}
function getRgArgs(config: IRawSearch, rootFolder: string): { args: string[], siblingClauses: glob.SiblingClause[] } {
// -uu == Skip gitignore files, and hidden files/folders
const args = ['--heading', '-uu', '--line-number', '--color', 'ansi', '--colors', 'path:none', '--colors', 'line:none', '--colors', 'match:fg:red', '--colors', 'match:style:nobold'];
const args = ['--heading', '--line-number', '--color', 'ansi', '--colors', 'path:none', '--colors', 'line:none', '--colors', 'match:fg:red', '--colors', 'match:style:nobold'];
args.push(config.contentPattern.isCaseSensitive ? '--case-sensitive' : '--ignore-case');
if (config.includePattern) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册