lit-analyzer icon indicating copy to clipboard operation
lit-analyzer copied to clipboard

[lit-plugin] Refactoring a html tag in a html template will rename all occurrence

Open vdegenne opened this issue 4 years ago • 1 comments

When I use F2 shortcut on an html tag to refactor the name I expect only the selected tag to be renamed but it turns out every tag are renamed even tags in html literal templates that are outside the one being edited. Here's what I mean.

https://user-images.githubusercontent.com/2827383/111659813-cec68080-880d-11eb-8ad9-6697914ad332.mp4

Is there a way to fix that ?

ps: I know it's not the intended behavior from testing in a plain html file.

vdegenne avatar Mar 18 '21 16:03 vdegenne

This issue still persists, renaming a div, for instance, will rename all occurrences throughout the entire project. @runem

alsoLut avatar May 20 '24 13:05 alsoLut