feat(search): Add option to disable fuzzy search (#6510)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
Co-authored-by: Arya Gummadi <aryagummadi@google.com>
This commit is contained in:
Bryant Chandler 2025-08-21 23:31:39 -07:00 committed by GitHub
parent ef46d64ae5
commit 4ced997d63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 114 additions and 2 deletions

View file

@ -51,6 +51,7 @@ describe('useAtCompletion', () => {
respectGeminiIgnore: true,
})),
getEnableRecursiveFileSearch: () => true,
getFileFilteringDisableFuzzySearch: () => false,
} as unknown as Config;
vi.clearAllMocks();
});
@ -198,6 +199,7 @@ describe('useAtCompletion', () => {
cache: false,
cacheTtl: 0,
enableRecursiveFileSearch: true,
disableFuzzySearch: false,
});
await realFileSearch.initialize();
@ -468,6 +470,7 @@ describe('useAtCompletion', () => {
respectGitIgnore: true,
respectGeminiIgnore: true,
})),
getFileFilteringDisableFuzzySearch: () => false,
} as unknown as Config;
const { result } = renderHook(() =>