refactor: Restructure file search settings

This commit restructures the file search settings. The previously individual settings for file search method, regex search backend, match search backend, and ripgrep path have been grouped into a new filesSearchSettings object.
This commit is contained in:
travertexg
2025-06-10 06:54:25 +00:00
parent a00b640dad
commit f0be561cfc
10 changed files with 63 additions and 28 deletions

View File

@@ -182,7 +182,7 @@ export class PromptGenerator {
},
]
let filesSearchMethod = this.settings.filesSearchMethod
let filesSearchMethod = this.settings.filesSearchSettings.method
if (filesSearchMethod === 'auto' && this.settings.embeddingModelId && this.settings.embeddingModelId !== '') {
filesSearchMethod = 'semantic'
}
@@ -520,6 +520,7 @@ export class PromptGenerator {
this.app.vault.getRoot().path,
false,
mode,
this.settings.filesSearchSettings,
filesSearchMethod,
preferredLanguage,
this.diffStrategy,