Skip to content

Make "Show all Enum on Hover" Optional #982

@behemothsecurity

Description

@behemothsecurity

Describe the bug

#942 introduced a new default behaviour which makes enumMarkdown, unusuable. I already reported on the PR, opening this issue now to try having eyes on it.

Expected Behavior

Make the option to enable or disable this behavior. If enumMarkdown is found, default behaviour could be to show it instead of the list of possible values.

Current Behavior

Instead of showing the description on hover it shows only all the enum options. VSCode has the option to support enumMarkdown, which returns a description for the enum. The default behaviour should be to show that description on hover, and not the list of enum values.

Steps to Reproduce

Create a json schema with enum and enumMarkdown entries. Make it a large enum (more than 30 items), and see on hover of one option how the whole list appears, and does not display the description for the value.

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

Metadata

Metadata

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions