You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GDScript editor nesting isn't working always correctly. When I want to collabse a function it sometimes collabses the next funtions """ comments with it. Annoying little bug, and I think it is because I use space in
Steps to reproduce
(Image 1) First I have this stupidly simple function which nulls my values. I can collabse everything (lines 51, 59, and 64) correctly except line 54 which is func clearNPC(). If I collabse it, image 2 will occur. If I collabse line 59 first, then Image 3 happens. This happens because I start the comment line with empty space. If I remove the spaces in the beginning of the line 62, collabse continue to work normally.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered:
Happens the same when doing something similar with single line comments:
Investigating a bit it seems that this is being processed in the function fold_line from code_edit.cpp. When trying to count how many lines should be folded It only stops when it finds a new block of code or reaches the end of the file while keeping track of the highest line with and indentation level higher than the one it started at. Is the expected outcome to have all the text be treated with the same indentation level as the start of the multi line comment?
Godot version
4.1.3-Stable
System information
Windows 10
Issue description
GDScript editor nesting isn't working always correctly. When I want to collabse a function it sometimes collabses the next funtions """ comments with it. Annoying little bug, and I think it is because I use space in
Steps to reproduce
(Image 1) First I have this stupidly simple function which nulls my values. I can collabse everything (lines 51, 59, and 64) correctly except line 54 which is func clearNPC(). If I collabse it, image 2 will occur. If I collabse line 59 first, then Image 3 happens. This happens because I start the comment line with empty space. If I remove the spaces in the beginning of the line 62, collabse continue to work normally.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: