vscode-hide-comments icon indicating copy to clipboard operation
vscode-hide-comments copied to clipboard

Does not always fold

Open trampas opened this issue 10 months ago • 4 comments

Just installed app and found it was folding comment in .h file. Opened the .c and file and it blanked out the comment lines but did not fold them. I opened another .c file and it worked correctly. Went back to previous file and it worked correctly. Not sure what is going on but have not been able to reproduce again, but figured it should be logged as an issue.

trampas avatar Jan 16 '25 15:01 trampas

I just had the same issue, but this time I unfolded comment and it shows blank lines.

Image

trampas avatar Jan 16 '25 15:01 trampas

Turning off the feature shows comment correctly:

Image

trampas avatar Jan 16 '25 15:01 trampas

Fold means collapse, right? I am having the same issue. I do use Colorful Comments but it doesn't seem to have a consistent pattern. Some collapses happen and others don't.

So, all of the regular comments disappear, some of the colorful disappear (but not all).

And the collapse is the same, with some collapsed code with colorful comments collapsing and others not.

KennyClayton avatar Feb 07 '25 17:02 KennyClayton

Same issue for me. Added "hideComments.foldOnHide": true to settings. RESULT: Some comments are folded, some are just hidden (could not figure out why).

PS: *.js in my case

nhwCoder avatar Jun 01 '25 11:06 nhwCoder