Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make "Show all Enum on Hover" Optional #982

Open
4 tasks
signaledge opened this issue Jul 22, 2024 · 0 comments
Open
4 tasks

Make "Show all Enum on Hover" Optional #982

signaledge opened this issue Jul 22, 2024 · 0 comments

Comments

@signaledge
Copy link

signaledge commented Jul 22, 2024

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant