From 941a8d96259ae1528439ac5324aff9584a2f6f01 Mon Sep 17 00:00:00 2001 From: travertexg Date: Tue, 10 Jun 2025 07:01:05 +0000 Subject: [PATCH] refactor: Relocate file search modules --- src/components/chat-view/ChatView.tsx | 8 ++++---- .../{search => file-search}/match/coreplugin-match.ts | 0 .../{search => file-search}/match/omnisearch-match.ts | 0 .../{search => file-search}/regex/coreplugin-regex.ts | 0 src/core/{search => file-search}/regex/ripgrep-regex.ts | 0 src/core/{search => file-search}/search-common.ts | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename src/core/{search => file-search}/match/coreplugin-match.ts (100%) rename src/core/{search => file-search}/match/omnisearch-match.ts (100%) rename src/core/{search => file-search}/regex/coreplugin-regex.ts (100%) rename src/core/{search => file-search}/regex/ripgrep-regex.ts (100%) rename src/core/{search => file-search}/search-common.ts (100%) diff --git a/src/components/chat-view/ChatView.tsx b/src/components/chat-view/ChatView.tsx index e6422d2..610e330 100644 --- a/src/components/chat-view/ChatView.tsx +++ b/src/components/chat-view/ChatView.tsx @@ -29,10 +29,10 @@ import { LLMBaseUrlNotSetException, LLMModelNotSetException, } from '../../core/llm/exception' -import { matchSearchUsingCorePlugin } from '../../core/search/match/coreplugin-match' -import { matchSearchUsingOmnisearch } from '../../core/search/match/omnisearch-match' -import { regexSearchUsingRipgrep } from '../../core/search/regex/ripgrep-regex' -import { regexSearchUsingCorePlugin } from '../../core/search/regex/coreplugin-regex' +import { matchSearchUsingCorePlugin } from '../../core/file-search/match/coreplugin-match' +import { matchSearchUsingOmnisearch } from '../../core/file-search/match/omnisearch-match' +import { regexSearchUsingRipgrep } from '../../core/file-search/regex/ripgrep-regex' +import { regexSearchUsingCorePlugin } from '../../core/file-search/regex/coreplugin-regex' import { useChatHistory } from '../../hooks/use-chat-history' import { useCustomModes } from '../../hooks/use-custom-mode' import { t } from '../../lang/helpers' diff --git a/src/core/search/match/coreplugin-match.ts b/src/core/file-search/match/coreplugin-match.ts similarity index 100% rename from src/core/search/match/coreplugin-match.ts rename to src/core/file-search/match/coreplugin-match.ts diff --git a/src/core/search/match/omnisearch-match.ts b/src/core/file-search/match/omnisearch-match.ts similarity index 100% rename from src/core/search/match/omnisearch-match.ts rename to src/core/file-search/match/omnisearch-match.ts diff --git a/src/core/search/regex/coreplugin-regex.ts b/src/core/file-search/regex/coreplugin-regex.ts similarity index 100% rename from src/core/search/regex/coreplugin-regex.ts rename to src/core/file-search/regex/coreplugin-regex.ts diff --git a/src/core/search/regex/ripgrep-regex.ts b/src/core/file-search/regex/ripgrep-regex.ts similarity index 100% rename from src/core/search/regex/ripgrep-regex.ts rename to src/core/file-search/regex/ripgrep-regex.ts diff --git a/src/core/search/search-common.ts b/src/core/file-search/search-common.ts similarity index 100% rename from src/core/search/search-common.ts rename to src/core/file-search/search-common.ts