You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Renaming MyComponent2 on line 8 in the App.tsx file edits both tags correctly, but it doesn't rename the component itself. If I rename the symbol on line 2, it updates the tags correctly:
I also noticed that if I only have <MyComponent2 /> on line 8 instead of the opening and closing tags, and I try to rename it, it seems to fail silently. Happy to file a separate bug if it'd be helpful:
The text was updated successfully, but these errors were encountered:
When you're on a tag, both linked editing and F2 (post #159534) only rename the matching tag. They don't rename all references to the tag. For that you can run F2 on the component itself
This behavior matches how linked editing and F2 work in html files
@mjbvz That's fair, although I didn't expect rename to silently fail as you can see on the last GIF. At least the component itself should be renamed, no?
Testing #180769
I have two files open, one called "MyComponent2.tsx" with the following content:
And then I have another one called "App.tsx"
Renaming
MyComponent2
on line 8 in the App.tsx file edits both tags correctly, but it doesn't rename the component itself. If I rename the symbol on line 2, it updates the tags correctly:I also noticed that if I only have
<MyComponent2 />
on line 8 instead of the opening and closing tags, and I try to rename it, it seems to fail silently. Happy to file a separate bug if it'd be helpful:The text was updated successfully, but these errors were encountered: