-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 CodeEdit to allow folding comment blocks #85453
Conversation
a9894de
to
3b3df3c
Compare
You need to squash the commits to a single one (see https://docs.godotengine.org/en/latest/contributing/workflow/pr_workflow.html#modifying-a-pull-request) |
f8b12e3
to
2a20245
Compare
squashed |
c7dd52d
to
612ac90
Compare
Thanks for opening a pull request 🙂 Feature pull requests should be associated to a feature proposal to justify the need for implementing the feature in Godot core. Please open a proposal on the Godot proposals repository (and link to this pull request in the proposal's body). This feature looks interesting and I've seen it in a few other editors, although Visual Studio Code doesn't seem to feature this (or it's not enabled by default). It makes sense for license headers in particular, as these tend to span 10+ lines at the top of every file. Having the collapse icon display for 2-line comments may end up looking noisy though. Perhaps we need a minimum number of consecutive comment lines before the folding icon is displayed (4 lines or so). |
496e694
to
73d1556
Compare
73d1556
to
1adf7fd
Compare
I'd suggest building locally to find the errors in your code instead of taxing the CI with it, at least until you've ironed out some things |
1adf7fd
to
7bb6f30
Compare
af04f3c
to
42d3955
Compare
5dda796
to
6fdd3c7
Compare
Are you unable to build locally? You will be much more able to find errors in your code that way (and you aren't still having several errors in your code that were picked up by CI that remain) 🙂 (You should be compiling locally anyway to confirm that the code actually works) |
6fdd3c7
to
40fb861
Compare
@AThousandShips , am adding minimum size which has come with some errors am sure I can iron them out in a couple of days... |
eeeb1ec
to
71bba4a
Compare
a61b6d1
to
c5b8c58
Compare
c5b8c58
to
14ccaa2
Compare
How so? It works as expected, and in line with the proposal you made. |
It is a good mystery, I don't really know |
Does this feature exist in master? |
Go ahead and check in the release 🙂, see here |
It does it was introduce some where before 4.2.beta6, I do not know how I missed it . Am not sure when where how it was implimented though |
Already implemented by:
I would say This can be closed as the functionality is already present, if some improvements or other details can be added from this please open a new PR with those features 🙂 Thank you for your contribution nonetheless |
achieved by add_comment_delimiter("#","",) |
allows foldable comments and extensible by taking prefix of a desired code block to make it foldable