-
-
Notifications
You must be signed in to change notification settings - Fork 57
Array autocompletion does not respect flag-yielding #459
Copy link
Copy link
Closed
Description
} else if (GenericTypeReflector.erase(child.getValue().getValueType().getType()).isArray()) {
while (commandQueue.size() > 1) {
commandQueue.remove();
}
}This removes all remaining arguments except for the very last one, which prevents autocompletion for tags like:
/command arr1 arr2 arr3 --flag valu, because the moment it reaches arr1 the whole queue is obliterated and you're left with a standalone valu but without any context for the flag to be able to tab-complete it.
This should probably call the parser and see what it consumes. If it consumes everything, suggest with the last word previously available in the queue. If it does not consume everything, move on to the next argument.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels