zokugun / vscode-explicit-folding

Customize your Folding for Visual Studio Code
MIT License
99 stars 14 forks source link

No folding for several "begin"s #18

Closed Melirius closed 4 years ago

Melirius commented 4 years ago

For example, in C/C++ you can have a comment like this:

/ Start of a commented section of code, that can be switched back on just by adding / to the end of this line Some code / End of the section /

Unfortunately extension cannot fold this type of comments.

daiyam commented 4 years ago

Hi @Melirius,

In the new version of the extension (v0.7.1), I've added the property nested so you can do:

{
  "begin": "\/*",
  "end": "*\/",
  "nested": false
}
Melirius commented 4 years ago

Thank you so much!

Melirius commented 4 years ago

Still have a problem with 0.7.1 and "nested": false for the case of

/* M23eebr(pApB, pApI, pApJ, pBpI, pBpJ)
/*            p1p2, p1k, p1pp1, p2k, p2pp1 */

with no spaces at the beginning of the second line. If I add a space, all is working.

daiyam commented 4 years ago

@Melirius I can't reproduce the issue. Can you give me your config and an exact example when the foldings aren't correct?

Melirius commented 4 years ago

Somehow it was connected to not fully updated extension. It had updated itself again after I reload Code (showing the banner again) and the problem disappeared.