zed icon indicating copy to clipboard operation
zed copied to clipboard

`Rename Symbol` not working in JSX

Open aretrace opened this issue 1 year ago • 6 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

In projects using JSX/TSX (only tested React), changing a component’s identifier within the return statement of another component does not update its reference. However, renaming the component in its function definition does update the identifier correctly.

Environment

zsh: command not found: copy

If applicable, add mockups / screenshots to help explain present your vision of the bug

Screenshot 2024-10-05 at 5 58 20 PM

aretrace avatar Oct 06 '24 01:10 aretrace

Any update on this?

aretrace avatar Nov 07 '24 02:11 aretrace

This probably is a language server issue rather than a Zed issue. Based on https://github.com/zed-industries/zed/blob/b65dc8c5666f563057164aaf01f796eaaa43ef3e/crates/languages/src/tsx/config.toml#L17 I'm guessing it's using emmet-language-server?

mgsloan avatar Jan 11 '25 08:01 mgsloan

@mgsloan this is still an issue (specific to using the the zed editor). If it's because of the tsx crate config then perhaps it could be remedied there.

aretrace avatar Jan 11 '25 20:01 aretrace

@aretrace I see! So this works correctly in other editors that use the same language server? Curious! Re-opening.

mgsloan avatar Jan 11 '25 21:01 mgsloan

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar May 14 '25 07:05 github-actions[bot]

+1

aretrace avatar May 15 '25 13:05 aretrace

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar Sep 24 '25 07:09 github-actions[bot]

This issue was closed due to inactivity. If you're still experiencing this problem, please open a new issue with a link to this issue.

github-actions[bot] avatar Oct 01 '25 09:10 github-actions[bot]