Skip to content

Commit 011a67a

Browse files
committed
Fix tests
1 parent e4592ea commit 011a67a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/services/search/node/fileSearch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class FileWalker {
4444
this.walkedPaths = Object.create(null);
4545

4646
// Normalize file patterns to forward slashs
47-
if (this.filePattern.indexOf(paths.sep) >= 0) {
47+
if (this.filePattern && this.filePattern.indexOf(paths.sep) >= 0) {
4848
this.filePattern = strings.replaceAll(this.filePattern, '\\', '/');
4949
this.searchInPath = true;
5050
}
@@ -240,4 +240,4 @@ export class Engine implements ISearchEngine {
240240
public cancel(): void {
241241
this.walker.cancel();
242242
}
243-
}
243+
}

0 commit comments

Comments
 (0)