-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add support for textDocument/definition
for DTD
#544
Conversation
723a613
to
fb625c7
Compare
To play with this PR, open the DTD https://github.com/angelozerr/lsp4xml/blob/master/org.eclipse.lsp4xml/src/test/resources/dtd/svg.dtd and do like the following demo: It shoud work too when DOCTYPE inside XML is defined. With this XML file: <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE note [
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note> Ctrl+Click on the first |
@fbricon I have finished to clean my code and write several tests. |
Fixes #233 Signed-off-by: azerr <azerr@redhat.com>
fb625c7
to
5961c2d
Compare
I think this should be one hyperlink, not sure if this is not easily doable. |
Our LSP4XML definition supports After debugging, it seems vscode doesn't support the capability |
ff74b4d
to
5961c2d
Compare
@NikolasKomonen do you think we can merge it this PR? @fbricon what do you think? |
@fbricon It works great for me, I think it can be merged. |
Thanks @NikolasKomonen for your review! |
Fixes #233
Signed-off-by: azerr azerr@redhat.com