mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-08 16:10:09 +00:00
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:
@@ -12,9 +12,12 @@ describe('parseSmartCopilotSettings', () => {
|
||||
infioApiKey: '',
|
||||
openAIApiKey: '',
|
||||
anthropicApiKey: '',
|
||||
filesSearchMethod: 'auto',
|
||||
regexSearchBackend: 'ripgrep',
|
||||
matchSearchBackend: 'coreplugin',
|
||||
filesSearchSettings: {
|
||||
method: 'auto',
|
||||
regexBackend: 'ripgrep',
|
||||
matchBackend: 'coreplugin',
|
||||
ripgrepPath: '',
|
||||
},
|
||||
fuzzyMatchThreshold: 0.85,
|
||||
geminiApiKey: '',
|
||||
groqApiKey: '',
|
||||
@@ -100,7 +103,6 @@ describe('parseSmartCopilotSettings', () => {
|
||||
defaultMention: 'none',
|
||||
removeDuplicateMathBlockIndicator: true,
|
||||
removeDuplicateCodeBlockIndicator: true,
|
||||
ripgrepPath: '',
|
||||
serperApiKey: '',
|
||||
serperSearchEngine: 'google',
|
||||
ignoredFilePatterns: '**/secret/**\n',
|
||||
@@ -197,9 +199,12 @@ describe('settings migration', () => {
|
||||
infioApiKey: '',
|
||||
openAIApiKey: '',
|
||||
anthropicApiKey: '',
|
||||
filesSearchMethod: 'auto',
|
||||
regexSearchBackend: 'ripgrep',
|
||||
matchSearchBackend: 'coreplugin',
|
||||
filesSearchSettings: {
|
||||
method: 'auto',
|
||||
regexBackend: 'ripgrep',
|
||||
matchBackend: 'coreplugin',
|
||||
ripgrepPath: '',
|
||||
},
|
||||
fuzzyMatchThreshold: 0.85,
|
||||
geminiApiKey: '',
|
||||
groqApiKey: '',
|
||||
@@ -285,7 +290,6 @@ describe('settings migration', () => {
|
||||
defaultMention: 'none',
|
||||
removeDuplicateMathBlockIndicator: true,
|
||||
removeDuplicateCodeBlockIndicator: true,
|
||||
ripgrepPath: '',
|
||||
serperApiKey: '',
|
||||
serperSearchEngine: 'google',
|
||||
ignoredFilePatterns: '**/secret/**\n',
|
||||
|
||||
Reference in New Issue
Block a user