Skip to content

Godot addon: Prevent turning on incompatible reorder code and safe mode simultaneously#296

Merged
NathanLovato merged 7 commits into
mainfrom
nathan/addon-format-modes
Jul 24, 2026
Merged

Godot addon: Prevent turning on incompatible reorder code and safe mode simultaneously#296
NathanLovato merged 7 commits into
mainfrom
nathan/addon-format-modes

Conversation

@NathanLovato

Copy link
Copy Markdown
Contributor

For #286

One of the users reported that they could not format their code in Godot and the issue had to do with format mode and reorder code being both turned on but they're actually incompatible at the moment.

This changes the editor settings and adds a little piece of migration code to turn it into a drop-down menu.

We don't seem to have a way to track the version of the editor settings for migrations if anyone has a suggestion as how we could store some hidden metadata in the editor settings I'm all ears.

@CosmoMyzrailGorynych

Copy link
Copy Markdown

There is set_as_internal for ProjectSettings that should make a field invisible to users.

@NathanLovato

NathanLovato commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, but unfortunately that's not available to the editor settings, which is a different singleton with a different API. It's a minor thing, it's not something super important; we can derive needed data migrations from previous state.

@NathanLovato
NathanLovato force-pushed the nathan/addon-format-modes branch from 196cf5e to 0664dfe Compare July 24, 2026 08:07
@NathanLovato
NathanLovato merged commit 892d5c2 into main Jul 24, 2026
1 check passed
@NathanLovato
NathanLovato deleted the nathan/addon-format-modes branch July 24, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants