Skip to content

Commit

Permalink
Also respect useGlobalIgnoreFiles in file search, from PR #59717
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Oct 7, 2018
1 parent 95fa14e commit 3b15768
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion extensions/search-rg/src/ripgrepFileSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ function getRgArgs(options: vscode.FileSearchOptions): string[] {
}

args.push('--no-config');
args.push('--no-ignore-global');
if (!options.useGlobalIgnoreFiles) {
args.push('--no-ignore-global');
}

return args;
}
4 changes: 3 additions & 1 deletion src/vs/workbench/services/search/node/ripgrepFileSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ function getRgArgs(config: IRawSearch, folderQuery: IFolderSearch, includePatter
}

args.push('--no-config');
args.push('--no-ignore-global');
if (config.disregardGlobalIgnoreFiles) {
args.push('--no-ignore-global');
}

return { args, siblingClauses };
}
Expand Down

0 comments on commit 3b15768

Please sign in to comment.