Collapsing code snippets


I don’t know whether it’s a feature, bag or correct behavior, but if I hit collapse arrow (on the left of “function qwe”), whole function’s body wouldn’t be hided but only before line with comment. It happens because comment’s indent is 0 whereas first line has 1 level indent.
If I shift comment to 2 level indent (like the rest of function body) then entire body be hided on collapse.

As I guess entire body of qwe should be collapsed in both cases.

Probably, there is a plugin or setting that allows “force collapsing”, but I haven’t found.