tui: fix autocomplete file loading and update dependencies
This commit is contained in:
parent
96b9ff8d0e
commit
83bcb9e95b
6 changed files with 61 additions and 12 deletions
|
|
@ -357,7 +357,7 @@ export function Autocomplete(props: {
|
|||
|
||||
const options = createMemo(() => {
|
||||
const mixed: AutocompleteOption[] = (
|
||||
store.visible === "@" ? [...agents(), ...(files.loading ? files.latest || [] : files())] : [...commands()]
|
||||
store.visible === "@" ? [...agents(), ...(files() || [])] : [...commands()]
|
||||
).filter((x) => x.disabled !== true)
|
||||
const currentFilter = filter()
|
||||
if (!currentFilter) return mixed.slice(0, 10)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue