Description:
doDefinition finds the closing tag by searching raw text with document.text.indexOf("</" + node.name, node.startOffset + 1). For nested elements with the same name, this can jump to the first nested closing tag instead of the matching closing tag for the selected element.
Relevant code:
dist/services/xmlDefinition.js: doDefinition
Expected behavior:
Definition navigation should use parsed node offsets or a matching-tag algorithm so nested same-name elements resolve to the correct closing tag.
Description:
doDefinitionfinds the closing tag by searching raw text withdocument.text.indexOf("</" + node.name, node.startOffset + 1). For nested elements with the same name, this can jump to the first nested closing tag instead of the matching closing tag for the selected element.Relevant code:
dist/services/xmlDefinition.js:doDefinitionExpected behavior:
Definition navigation should use parsed node offsets or a matching-tag algorithm so nested same-name elements resolve to the correct closing tag.