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

Sort table key listings in debug views #129

Open
infogulch opened this issue Jul 5, 2024 · 0 comments
Open

Sort table key listings in debug views #129

infogulch opened this issue Jul 5, 2024 · 0 comments

Comments

@infogulch
Copy link

When browsing large lists in the Variables, Watch, or variable hover views while debugging, it is frustrating to search for keys in big tables like data.raw and data.raw["items"]. It would be much easier if keys for these tables were sorted before they are displayed.

This could have the downside of sorting "struct" keys for prototypes (because there is no actual difference between "structs" and "dicts" in lua, everything is a table), which is obviously undesirable. A potential workaround is to sort a table's keys for display only if it doesn't have a "type" key, since all prototypes have a type and no big lists of prototypes have an element named "type".

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

No branches or pull requests

1 participant