formulahendry / vscode-auto-rename-tag

Automatically rename paired HTML/XML tag

Home Page:https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Writing new tag in react with similar parent tag breaks the closing tag

gndelia opened this issue · comments

This is the code before typing

<Table.Head>
  <Table.Row>
  </Table.Row>
</Table.Head>

I want to use a Table.Heading inside the Table.Row. As soon as I type Table.Head (only ing left) it automatically picks the closing </Table.Head> and updates it, breaking the top-most tag. So the code ends with

<Table.Head>
  <Table.Row>
    <Table.Heading></Table.Heading>
  </Table.Row>
</Table.Heading> // this one does not matches the opening tag

when it should be

<Table.Head>
  <Table.Row>
    <Table.Heading></Table.Heading>
  </Table.Row>
</Table.Head> // here it matches the opening tag

here's a gif

tag

just in case, here are my current extensions, though I would not expect any of them to cause this

image