I am working on a plugin for a language that uses numeric values to reference constant values. To aid in understanding code at a glance, I have enabled inlay hints which give a text name to the number.
Today I decided I wanted to make some of the condition statements easier to read. To do this I used code folding. It works well except that the inlay hint for the last value in the condition still shows its inlay hint, despite the actual value being folded.
Is there a way to hide the inlay hint when the code is folded?. Or at least a way to tell if an element is inside a fold so I can return null for the inlay text if needed?
Thank you for your time