Generated zsh completion script file completion behavior

When using a Swift-Argument-Parser-generated zsh completion script, if the current path for a file(extension:) argument is a leaf directory, and if no non-hidden files in that directory match any of the given extensions, then all non-hidden files in that directory are offered as candidates for completion, regardless of their respective extensions.

Is that intended?

Should bash & fish also be configured the same way? Or do users of different shells expect different behaviors?

Whatever is chosen, it should be properly documented.