eclipse-platform / eclipse.platform.ui

Eclipse Platform
https://projects.eclipse.org/projects/eclipse.platform
Eclipse Public License 2.0
81 stars 188 forks source link

Added or deleting lines above folded function(s) breaks what has already been folded to its definition (C++) #1479

Open chrisemsen opened 10 months ago

chrisemsen commented 10 months ago

Start at the bottom of any sensible sized CPP source file, Fold (collapse) the bottom most function to its definition (click the '-' in the margin), Move up to the next function and collapse that, Cursor up into the whitespace above that function definition, and press Enter a few times. And the folding on the 2 bottom-most functions, that were collapsed to their single line definitions, goes to pot.

Eclipse IDE for C/C++ Developers (includes Incubating components) Version: 2023-12 (4.30.0) Build id: 20231201-2043 OS: Linux, v.5.15.0-91-generic, x86_64 / gtk 3.24.33 Java vendor: Eclipse Adoptium Java runtime version: 17.0.7+7 Java version: 17.0.7

akurtakov commented 10 months ago

Is this specific to cpp editor only or you can reproduce it with e.g. Java one too?

chrisemsen commented 10 months ago

Sorry don't know - I'm a Java free zone

⁣Regards

Chris​

On 9 Jan 2024, 09:43, at 09:43, "Александър Куртаков" @.***> wrote:

Is this specific to cpp editor only or you can reproduce it with e.g. Java one too?

-- Reply to this email directly or view it on GitHub: https://github.com/eclipse-platform/eclipse.platform.ui/issues/1479#issuecomment-1882729926 You are receiving this because you authored the thread.

Message ID: @.***>

akurtakov commented 10 months ago

You're more likely to get some attention with that issue at https://github.com/eclipse-cdt/cdt in that case. Alternatively, you would have to prove it's a platform issue by demonstrating the issue with any other editor - js, php, html, makefile, etc. When you open your CDT problem please upload some screenshots and the file used to reproduce the issue to reduce possible misunderstandings of the problem itself.