Skip to content

Commit

Permalink
session/command.go: Also add enums if they're empty but have a non-em…
Browse files Browse the repository at this point in the history
…pty name.
  • Loading branch information
Sandertv committed Aug 26, 2023
1 parent c63ea64 commit 5303318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/session/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (s *Session) sendAvailableCommands() map[string]map[int]cmd.Runnable {
if _, ok := paramInfo.Value.(bool); ok {
opt |= protocol.ParamOptionCollapseEnum
}
if len(enum.Options) > 0 {
if len(enum.Options) > 0 || enum.Type != "" {
if !enum.Dynamic {
index, ok := enumIndices[enum.Type]
if !ok {
Expand Down

0 comments on commit 5303318

Please sign in to comment.