提交 f0f3b922 编写于 作者: R Rob Lourens

Only set --encoding flag when files.encoding is set.

For some reason, --encoding=utf8 is slower when searching large binary files with \n in the query...
上级 83660da7
......@@ -330,7 +330,7 @@ function getRgArgs(query: vscode.TextSearchQuery, options: vscode.TextSearchOpti
args.push('--follow');
}
if (options.encoding) {
if (options.encoding && options.encoding !== 'utf8') {
args.push('--encoding', options.encoding);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册