Improve slashCommand autoCompletion logic (#2776)

This commit is contained in:
Seth Troisi
2025-07-01 15:51:43 -07:00
committed by GitHub
parent 8957ad7fc3
commit 383306e17e
2 changed files with 13 additions and 7 deletions

View File

@@ -135,7 +135,8 @@ export function useCompletion(
(cmd) => cmd.name === commandName || cmd.altName === commandName,
);
if (command && command.completion) {
// Continue to show command help until user types past command name.
if (command && command.completion && parts.length > 1) {
const fetchAndSetSuggestions = async () => {
setIsLoadingSuggestions(true);
if (command.completion) {