Skip to content

Commit 02b6c92

Browse files
committed
Always fuzzy if not a glob pattern
1 parent 5ba91a2 commit 02b6c92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/FileSystemProvider/FileSearchProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export class FileSearchProvider implements vscode.FileSearchProvider {
2222
// Drop a leading **/ from the glob pattern if it exists. This gets added by Find widget of Explorer tree (non-fuzzy mode), which since 1.94 uses FileSearchProvider
2323
if (pattern.startsWith("**/")) {
2424
pattern = pattern.slice(3);
25-
} else if (pattern.length && !pattern.includes("*") && options.useGlobalIgnoreFiles) {
26-
// Heuristic to detect a fuzzy search from Explorer's Find widget (see https://github.com/microsoft/vscode/issues/230483#issuecomment-2393928617)
25+
} else if (pattern.length) {
26+
// Do a fuzzy search
2727
pattern = "*" + pattern.split("").join("*") + "*";
2828
}
2929
const params = new URLSearchParams(options.folder.query);

0 commit comments

Comments
 (0)