-
Notifications
You must be signed in to change notification settings - Fork 82
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
Enumeration documentation is not displayed #233
Enumeration documentation is not displayed #233
Comments
Glad it pleases you! Could you give us a XML sample and full XML Schema which causes the problem, it will help us to understand quickly the missing feature and we will able to use your usecase for writing tests. |
Yes. |
Here goes: Hope this helps. If not, let me know. |
@MAHTasklet thanks for your zip. I try to understand the problem, if I hover but it should display Is this problem that you mention? |
Yes. |
Could you add a screenshot please. |
Ok and when you hover the NAV value, you see the document of the NAV (or merged documentation of the type and NAV documentation?) |
No. It's the same value if I hover anything. regarding the type= attribute. That includes the actual attribute name (type=) or any entered values (AX, NAV, D365FO). Oddly enough, mine does display a different value that what you display, namely "Used when connecting to Dynamics AX 365 for Finance and Operations". However, always that value. I just discovered that if I close VS Code, then whatever part of the type="" that is hovered, is the value that will always be displayed when hovering, even type attributes on different elements. |
To recreate: Now repeat all steps, and choose another starting point e.g. hovering the type= attribute, and notice that whatever you hover, documentation of the initial element is always displayed. |
Ok if I understand correctly the problem, it's a cache problem. It seems hover is working the first time (if you hover the type attribute the first time, it works, if you hover AX value the first time it works, etc), but problem occurs for the second hover which is different from the first. Is it that, or is there another problem? I can reproduce the problem and I'm creating a PR for that. |
@MAHTasklet here the result of eclipse-lemminx/lemminx#623 Is it OK for you? |
That looks awesome. |
Fixes redhat-developer/vscode-xml#233 Signed-off-by: azerr <[email protected]>
This is a great plug-in thanks for that.
I have a minor issue, that annotation/documentation is not displayed for xs:enumeration items, either when hovering over items in the selection list or when hovering the value after selecting.
In the example below only the documentation from the xs:simpleType is displayed.
I have also noticed, that if the top level element (xs:simpleType) does not have documentation, then the documentation for the last enumeration is used.
I have tested in Visual Studio that the documentation is written correctly, and displayed when hovering.
Let me know, if I need to do something different, or test a fix.
Sorry about the formatting, I have not been able to make it look better.
Best regards
Morten
The text was updated successfully, but these errors were encountered: