Inconsistent folding for functions with comment or attribute directly above definition and multi line argument list #20347
Closed
ZylosLumen
started this conversation in
General
Replies: 1 comment
-
Transferred into an issue #20348. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
a
has a folding range on line withfn
and) {
. The first folds everything including body, second one only body.b
andc
have a folding range on line withfn
and) {
. The first folds parameter list, second one only body.I tried putting other kinds of items (struct, enum, type, use, mod) but only comments and attributes exhibit this behaviour. What is the reason for this? In all cases you can fold the body separately, but not the argument list. I understand that it would be hard to support choosing between folding the whole function and argument list but it is annoying to only have the arguments fold when wanting to fold the entire function.
Beta Was this translation helpful? Give feedback.
All reactions