Skip to content
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

Improve sorting of enum autocompletion #86667

Merged

Conversation

HolonProduction
Copy link
Member

Closes godotengine/godot-proposals#7913

The enum constants will now appear before methods. Also they are sorted in their declaration order and not alphabetical.

@HolonProduction HolonProduction requested a review from a team as a code owner December 31, 2023 13:36
@tokengamedev
Copy link

can this be merged to 4.2 also

@Mickeon
Copy link
Contributor

Mickeon commented Dec 31, 2023

I don't see why this can't be cherrypicked for 4.2, so yes.

Copy link
Member

@ajreckof ajreckof left a comment

Choose a reason for hiding this comment

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

Code is pretty simple and straightforward. Seems to work.

LGTM

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Makes sense to me.

@akien-mga akien-mga added the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Jan 4, 2024
@akien-mga akien-mga merged commit 525e0bb into godotengine:master Jan 4, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Jan 25, 2024
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.2.2.

@HolonProduction HolonProduction deleted the completion-enum-sorting branch October 5, 2024 18:58
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.

Always display enum values first when autocompleting an enum
7 participants