Просмотр исходного кода

core: keep exact @mention file suggestions visible

Shoubhit Dash 4 месяцев назад
Родитель
Сommit
842a6eadc5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/components/prompt-input.tsx

+ 1 - 1
packages/app/src/components/prompt-input.tsx

@@ -573,7 +573,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
       const seen = new Set(open)
       const pinned: AtOption[] = open.map((path) => ({ type: "file", path, display: path, recent: true }))
       if (!query.trim()) return [...agents, ...pinned]
-      const paths = await files.searchFilesAndDirectories(query)
+      const paths = await files.searchFiles(query)
       const fileOptions: AtOption[] = paths
         .filter((path) => !seen.has(path))
         .map((path) => ({ type: "file", path, display: path }))