Skip to content

Test JSX linked editing #180769

Closed
Closed

Description

Test for microsoft/TypeScript#51832

Complexity: 3

Create Issue


Summary

TS 5.1 enables linked editing for JSX tags. This means you can place your cursor on one tag and start editing to update the matching tag

Testing

  1. Enable linked editing: "editor.linkedEditing": true
  2. npm install typescript@next and switch your workspace to use TypeScript 5.1
  3. In a .tsx or .jsx file, try making linked edits to jsx tags

Some things to test:

  • Linked editing should stop once you type space or a non tag character
  • Linked editing should only effect the matching tags
  • Linked editing should not be activated when you are on an attribute
  • Linked editing should work when the cursor is on either the opening or closing tag
  • Pressing escape should exit linked editing mode
  • Linked editing should work for qualified names, like myNamespace.Component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions