Closed twelvelabs closed 11 months ago
cc @gorkem and @msivasubramaniaan for visibility.
@msivasubramaniaan @twelvelabs This feature really broke our workflow, we use arrays where items are defined with a huge list of enums (and markdownEnumDescriptions), and now hover will not work as it tries to render the full list of enum instead of trying to show the markdownEnumDescription for the enum entry being hovered on first. I also think this feature has limited purpose as the list is available with autocompletion. I suggest to put this change behind a setting which can be disabled.
What does this PR do?
This PR updates the hover service to display all possible enum values, rather than just the currently selected one. Additionally, it will display the enums regardless of whether the schema contains explicit descriptions (though it will continue to display the descriptions if present - see included test case).
Also:
ensureLineBreak
helper to make sure there is consistent spacing between each of the various hover sections.What issues does this PR fix or reference?
Fixes #941
Is it tested? How?
test/hover.test.ts