auto-rename-tag icon indicating copy to clipboard operation
auto-rename-tag copied to clipboard

typescript generic elements do not work and cause spin

Open aaronjensen opened this issue 5 years ago • 1 comments

I'm sorry for the flurry of issues... it's only because I like this package.

This one is somewhat esoteric as well, so if you don't intend to support typescript, I totally understand if you'd want to close this.

Start with this:

const x = () => (
  <Foo>
    test
  </Foo>
)

Update top <Foo> to <Foo<Bar>>

That will change the bottom </Foo> to </Bar>:

const x = () => (
  <Foo<Bar>>
    test
  </Bar>
)

Then put your point before the B in </Bar> and C-d, that will hang Emacs until you spam C-g.

The auto-rename-tag-mode will not work anymore until you disable it and reenable it.

aaronjensen avatar Dec 29 '18 09:12 aaronjensen

Thanks for your contribution to this package. Any reasonable issues are welcome, I will definitely like to make this package as much compatible to any circumstances as possible. Hence, I will look into this issue as soon as I have time! :D

jcs090218 avatar Dec 30 '18 09:12 jcs090218