Skip to content

Commit

Permalink
Always fuzzy if not a glob pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
gjsjohnmurray committed Oct 4, 2024
1 parent 5ba91a2 commit 02b6c92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/FileSystemProvider/FileSearchProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export class FileSearchProvider implements vscode.FileSearchProvider {
// 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
if (pattern.startsWith("**/")) {
pattern = pattern.slice(3);
} else if (pattern.length && !pattern.includes("*") && options.useGlobalIgnoreFiles) {
// Heuristic to detect a fuzzy search from Explorer's Find widget (see https://github.com/microsoft/vscode/issues/230483#issuecomment-2393928617)
} else if (pattern.length) {
// Do a fuzzy search
pattern = "*" + pattern.split("").join("*") + "*";
}
const params = new URLSearchParams(options.folder.query);
Expand Down

0 comments on commit 02b6c92

Please sign in to comment.