-
Notifications
You must be signed in to change notification settings - Fork 91
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
Fix error range for ETagRequired #395
Conversation
Please use self-descriptive commit messages, like |
Ok, I have just changed the commit message. |
LGTM but I'll let @NikolasKomonen or @angelozerr check if that's actually correct. |
@xorye Looks good to me One thing to change, and I know you didn't do this. But could you update the method name of 'findChildNode' https://github.com/angelozerr/lsp4xml/blob/ccc55276ec3505f93a3d654235560f5e3504a03b/org.eclipse.lsp4xml/src/main/java/org/eclipse/lsp4xml/utils/XMLPositionUtility.java#L205 to something like 'findUnclosedChildNodeWithName' Other than than it works great. |
findUnclosedChildNode will be fine |
Cool, changing it now. |
Actually, this function finds a closed child node. Not an unclosed one. I'll change it to findClosedChildNode |
} | ||
} | ||
return null; | ||
} | ||
|
||
static DOMNode findChildNode(String childTag, List<DOMNode> children) { | ||
static DOMNode findClosedChildNode(String childTag, List<DOMNode> children) { | ||
for (DOMNode child : children) { | ||
if (child.isElement() && childTag != null && childTag.equals(((DOMElement) child).getTagName()) | ||
&& !child.isClosed()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this child is unclosed
Fixes #387 Signed-off-by: David Kwon <[email protected]>
This reverts commit c228469.
Fixes eclipse#395 Signed-off-by: azerr <[email protected]>
Fixes eclipse#395 Signed-off-by: azerr <[email protected]>
Fixes eclipse#395 Signed-off-by: azerr <[email protected]>
Fixes eclipse#395 Signed-off-by: azerr <[email protected]>
Fixes eclipse#395 Signed-off-by: azerr <[email protected]>
Fixes eclipse#395 Signed-off-by: azerr <[email protected]>
Fixes eclipse#395 Signed-off-by: azerr <[email protected]>
Fixes #387
Signed-off-by: David Kwon [email protected]