Skip to content

Make "Go to Definition" find the matching closing tag for nested same-name elements #47

Description

@harshanacz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions