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

fix(tui): prevent autocomplete search flicker (#38128)

Dax 3 недель назад
Родитель
Сommit
3304e79827
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/tui/src/component/prompt/autocomplete.tsx

+ 1 - 1
packages/tui/src/component/prompt/autocomplete.tsx

@@ -460,7 +460,7 @@ export function Autocomplete(props: {
 
     // Files come from fff already fuzzy ranked and filtered
     // it shouldn't be additionally sorted by fuzzysort as it will loose the results
-    const fileOptions: AutocompleteOption[] = store.visible === "@" && !files.loading ? fileSearch.options : []
+    const fileOptions: AutocompleteOption[] = store.visible === "@" ? fileSearch.options : []
     const nonFileOptions: AutocompleteOption[] =
       store.visible === "@" ? [...referenceAliasesValue, ...agentsValue, ...mcpResources()] : [...commandsValue]