feat(settings): rename negative settings to positive naming (disable* -> enable*) (#14142)

Co-authored-by: jacob314 <jacob314@gmail.com>
This commit is contained in:
Alexander Farber
2026-01-16 23:33:49 +01:00
committed by GitHub
parent 217056f4af
commit 444429179e
25 changed files with 785 additions and 243 deletions
@@ -22,7 +22,7 @@ export interface FileSearchOptions {
cache: boolean;
cacheTtl: number;
enableRecursiveFileSearch: boolean;
disableFuzzySearch: boolean;
enableFuzzySearch: boolean;
maxDepth?: number;
maxFiles?: number;
}
@@ -122,7 +122,7 @@ class RecursiveFileSearch implements FileSearch {
): Promise<string[]> {
if (
!this.resultCache ||
(!this.fzf && !this.options.disableFuzzySearch) ||
(!this.fzf && this.options.enableFuzzySearch) ||
!this.ignore
) {
throw new Error('Engine not initialized. Call initialize() first.');
@@ -183,7 +183,7 @@ class RecursiveFileSearch implements FileSearch {
private buildResultCache(): void {
this.resultCache = new ResultCache(this.allFiles);
if (!this.options.disableFuzzySearch) {
if (this.options.enableFuzzySearch) {
// The v1 algorithm is much faster since it only looks at the first
// occurrence of the pattern. We use it for search spaces that have >20k
// files, because the v2 algorithm is just too slow in those cases.