facebook / relay

Relay is a JavaScript framework for building data-driven React applications.
https://relay.dev
MIT License
18.24k stars 1.8k forks source link

Add code action to rename fragment #4697

Closed tobias-tengler closed 3 days ago

tobias-tengler commented 1 month ago

At the moment there's a code action that suggests correct operation names, if you hover over an operation name or the operation name is associated with a diagnostic. This PR adds the same thing for fragment definition names.

tobias-tengler commented 1 month ago

In the future, once https://github.com/facebook/relay/pull/4581 is merged (I'm still hopeful), i'd like to extend the code action to perform an actual rename for the fragment. Really looking forward to both of these PRs landing. It's incredibly frustrating to rename components / fragments currently.

facebook-github-bot commented 3 days ago

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 3 days ago

@captbaritone merged this pull request in facebook/relay@dc2cb85aa8208234523d0bfcf7fd963f6e1e1e70.