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

Fix windows file search tests

上级 fdb46fcc
......@@ -206,10 +206,5 @@ function getRgArgs(options: vscode.FileSearchOptions): string[] {
args.push('--no-config');
args.push('--no-ignore-global');
// Folder to search
args.push('--');
args.push('.');
return args;
}
......@@ -235,8 +235,8 @@ export class FileWalker {
// Mac: uses NFD unicode form on disk, but we want NFC
const normalized = leftover + (isMac ? normalization.normalizeNFC(stdout) : stdout);
const relativeFiles = normalized.split('\n./');
if (first && normalized.length >= 2) {
const relativeFiles = normalized.split(useRipgrep ? '\n' : '\n./');
if (!useRipgrep && first && normalized.length >= 2) {
first = false;
relativeFiles[0] = relativeFiles[0].trim().substr(2);
}
......
......@@ -77,11 +77,6 @@ function getRgArgs(config: IRawSearch, folderQuery: IFolderSearch, includePatter
args.push('--no-config');
args.push('--no-ignore-global');
// Folder to search
args.push('--');
args.push('.');
return { args, siblingClauses };
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册