Skip to content

Rename symbol on a HTML tag inside of JSX globally renames all tags #3937

@xirzec

Description

@xirzec
  1. Open a project that uses TypeScript + JSX (with react.d.ts loaded)
  2. Put the cursor over a common HTML tag like <div>
  3. Hit F2 to rename symbol
  4. Rename the div to something else (like span)

Expected: Just the matching open/close is renamed to <span>
Actual: Every div in every JSX file is now a span and even react.d.ts has had its div attribute in the HTML tag names renamed to span

VS Code version: 0.10.10

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions