Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change surrounding should respect JSX #350

Open
nikitarevenco opened this issue Sep 8, 2024 · 0 comments
Open

change surrounding should respect JSX #350

nikitarevenco opened this issue Sep 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nikitarevenco
Copy link

nikitarevenco commented Sep 8, 2024

If we have this, with cursor being at *

    <div>
      <h1>Counter: {state.count}</h1>
      <Button label="Incre*ment" onClick={increment} />
      <Button label="Decrement" onClick={decrement} />
    </div>

Currently doing dst will resut in:

      <h1>Counter: {state.count}</h1>
      <Button label="Incre*ment" onClick={increment} />
      <Button label="Decrement" onClick={decrement} />

When it would be better if it resulted in:

    <div>
      <h1>Counter: {state.count}</h1>
      <Button label="Decrement" onClick={decrement} />
    </div>
@nikitarevenco nikitarevenco added the enhancement New feature or request label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant