'How to stop VS code from unfolding everything on block open syntax?

Not exactly sure how to phrase this but it is incredibly annoying that when I'm writing js for example and open a comment block (/*) or a template string(`) and everything that I have folded in the following lines gets unfolded because it thinks that my comment or template string block might just extend to the very end of the whole file.

At this point I'm already in the habit of writing the end of a comment block before the beginning and copy-pasting my template strings and then editing them rather than making new ones but it would be so much nicer if I could just write without having to worry about such things, notepad++ handled it well, is there any way to make vs code behave decently too?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source