mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-10 00:47:46 +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:
@@ -1,5 +1,4 @@
|
||||
import { ToolArgs } from "./types"
|
||||
import { useSettings } from '../../../contexts/SettingsContext'
|
||||
|
||||
export function getSearchFilesDescription(args: ToolArgs): string {
|
||||
if (args.searchTool === 'match') {
|
||||
@@ -34,9 +33,8 @@ Example: Requesting to search for all Markdown files containing 'test' in the cu
|
||||
}
|
||||
|
||||
export function getRegexSearchFilesDescription(args: ToolArgs): string {
|
||||
const { settings } = useSettings()
|
||||
let regex_syntax: string;
|
||||
switch (settings.regexSearchBackend) {
|
||||
switch (args.searchSettings.regexBackend) {
|
||||
case 'coreplugin':
|
||||
regex_syntax = "ECMAScript (JavaScript)";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user