Skip to content

Remove redundant line_spacing editor setting #106137

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

Merged

Conversation

RedMser
Copy link
Contributor

@RedMser RedMser commented May 6, 2025

The setting text_editor/theme/line_spacing was only used in this one code location.
Meanwhile, text_editor/appearance/whitespace/line_spacing is used everywhere else.

Seems best to just merge them and remove the one that only affects the native shader code viewer :D

Code changes are untested... 🙏

@RedMser RedMser requested review from a team as code owners May 6, 2025 22:20
@Mickeon Mickeon added this to the 4.5 milestone May 7, 2025
Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's not even any ambiguity here. Both settings sound like they should do the same thing. It feels like one was kept by accident, and judging by the vague grouping, text_editor/theme/line_spacing is the accident.

We should reevaluate a lot of editor settings, in my opinion.

@Mickeon
Copy link
Contributor

Mickeon commented May 7, 2025

Note, though. The default of the removed setting was 6, and the new one is 4. This will change the appearance of... the native source code view of shaders. Oh no!

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be good to merge after applying @Mickeon's suggestion.

This is indeed a legacy leftover (many settings were moved around with the CodeEdit refactoring), so it's safe to remove.

@RedMser RedMser force-pushed the remove-unused-linespacing-setting branch from e4ebd0c to 4acdc7a Compare May 7, 2025 14:53
@Repiteo Repiteo merged commit 3b12bd0 into godotengine:master May 7, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented May 7, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants