Skip to content

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

Open

Description

From @xirzec on March 9, 2016 22:24

  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

Copied from original issue: microsoft/vscode#3937

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Domain: JSX/TSXRelates to the JSX parser and emitterExperience EnhancementNoncontroversial enhancementsSuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions