We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4592ea commit 011a67aCopy full SHA for 011a67a
1 file changed
src/vs/workbench/services/search/node/fileSearch.ts
@@ -44,7 +44,7 @@ export class FileWalker {
44
this.walkedPaths = Object.create(null);
45
46
// Normalize file patterns to forward slashs
47
- if (this.filePattern.indexOf(paths.sep) >= 0) {
+ if (this.filePattern && this.filePattern.indexOf(paths.sep) >= 0) {
48
this.filePattern = strings.replaceAll(this.filePattern, '\\', '/');
49
this.searchInPath = true;
50
}
@@ -240,4 +240,4 @@ export class Engine implements ISearchEngine {
240
public cancel(): void {
241
this.walker.cancel();
242
243
-}
+}
0 commit comments