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

Move code folding into CodeEdit and hide line hiding API #49238

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

Paulb23
Copy link
Member

@Paulb23 Paulb23 commented Jun 1, 2021

Continuation of #31739

Builds on top of #45393


The main aim of this PR is abstracting out code folding into CodeEdit.

Taking advantage of the string / comment tracking, it will now allow you to fold blocks of strings and comments.

Drawing is still handed by TextEdit due to how complex it is to draw, at some point I would like to extract this as well, but designing this API will take a while. However, the theming of code folding exists on CodeEdit, which TextEdit will pull from.

In addition to this, for the end of line marker we were using EditorIcons, this has been removed for a new /scene icon ellipsis.png.

Similarly, I have removed line hiding from the API, until we can design a replacement that does not depend explicitly on the line folding use case.


closes godotengine/godot-proposals/issues/416

closes the bug part of #19981
clears up some cases of #15690

@akien-mga akien-mga merged commit 341cb8d into godotengine:master Jun 16, 2021
@akien-mga
Copy link
Member

Thanks!

@Paulb23 Paulb23 deleted the code_edit_code_folding branch June 16, 2021 18:23
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.

Fold down comments (like functions)
2 participants