oracle / javavscode

Java platform support for Visual Studio Code for full featured Java development (edit-compile-debug & test cycle)
Apache License 2.0
231 stars 31 forks source link

If-else statement code folding is misleading without showing else #249

Closed slowhog closed 4 weeks ago

slowhog commented 2 months ago

If-else statement folding on if should either stop at else or at the end of else.

The following screenshots demonstrate the issue,

Screenshot 2024-08-28 at 10 44 29 AM

After collapse the if-else statement, what was shown is actually the else block, this is confusing.

Screenshot 2024-08-28 at 10 44 59 AM