Folding arrow not showing when it should


I really love coding with Atom, to me it is almost perfect. I particularly enjoy the folding tool, when the code is long and with a lot of parts, it is great.

But sometimes, for reasons I don’t get, some parts won’t fold, the arrow does not show up, like on the image below :


That function “SelectStrength(strength)” is built like the functions after and before her, yet I can’t fold her. I can fold the ifs inside, but not the whole function.

This is all js, and the 1800+ lines and functions all fold neatly except that function.

I’ve read many threads about code folding before posting, I hope I didn’t miss one with the answer.

If someone has an idea, I am curious to find out.

Thanks !