Skip to content

Conversation

@sebmarkbage
Copy link
Collaborator

@sebmarkbage sebmarkbage commented Jul 25, 2025

Stacked on #33983.

Previously, the source of truth is the url stored in local storage but that means if we change the presets then they don't take effect (e.g. #33994). This PR uses the hardcoded value instead when a preset is selected.

This also has the benefit that if you switch between custom and vs code in the selector, then the custom url is preserved instead of getting reset when you checkout other options.

Currently the default is custom with empty string, which means that there's no code editor configured at all by default. It doesn't make a lot of sense that we have it not working by default when so many people use VS Code. So this also makes VS Code the default if there's no EDITOR_URL env specified.

@sebmarkbage sebmarkbage requested review from eps1lon and hoxyq July 25, 2025 01:22
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jul 25, 2025
That way we can update the preset.

This also makes it so that you don't lose the custom url if you switch between a preset and custom.
@sebmarkbage sebmarkbage merged commit b2c3049 into facebook:main Jul 25, 2025
238 of 241 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants