runem / lit-analyzer

Monorepository for tools that analyze lit-html templates
MIT License
313 stars 35 forks source link

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

Open vdegenne opened 3 years ago

vdegenne commented 3 years ago

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.

alsoLut commented 1 month ago

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