You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to fold two blocks. Both are identified by the comment character #. The first block is a comment block, which is composed of consecutive line comments beginning with only one #. The second block is a code block. The code is between two comment lines. The first comment line begins with ## SECTION, signifying the start of the code block. The second comment line begins with ## !SECTION, signifying the end of the code block. The SECTION keyword is a feature of the other extension called Comment Anchors.
The problem is that when these two blocks are separated by one line, they can fold themselves, respectively. However, if the two blocks are adjacent without a seperator, only one block can be folded.
To reproduce
VSCode: 1.95.3
Explicit Folding: 0.24.1
Language: Julia
Language Provider: Julia
Code Example
Click here to see the code
# I # want to# fold # these consecutive # comment lines## SECTION - This is a comment but belong to the following block. It is a sepretor for starting of a code cell/section.
mycode =1
is =2
written =3
here =4## !SECTION - This is a comment but belong to the previous block. It is a sepretor for ending of a code cell/section.# I # want to# fold # these consecutive # comment lines## SECTION - This is a comment but belong to the following block. It is a sepretor for starting of a code cell/section.
mycode =1
is =2
written =3
here =4## !SECTION - This is a comment but belong to the previous block. It is a sepretor for ending of a code cell/section.
Another question is why the "autoFold": true setting is not working. See the above settings. Whether or not I comment on this setting, the docstring block will not automatically be folded. It always defaults to unfolded.
Describe the issue
I want to fold two blocks. Both are identified by the comment character
#
. The first block is a comment block, which is composed of consecutive line comments beginning with only one#
. The second block is a code block. The code is between two comment lines. The first comment line begins with## SECTION
, signifying the start of the code block. The second comment line begins with## !SECTION
, signifying the end of the code block. TheSECTION
keyword is a feature of the other extension called Comment Anchors.The problem is that when these two blocks are separated by one line, they can fold themselves, respectively. However, if the two blocks are adjacent without a seperator, only one block can be folded.
To reproduce
Code Example
Click here to see the code
Settings
Click here to see the settings
Screenshots
Original texts
Folding result (this is not the correct folding)
Expected behavior
The expected behavior is to fold line No.1-5 (block 1), line No.7-12 (block 2), line No.13-17 (block 3) and line No.18-23 (block 4).
The text was updated successfully, but these errors were encountered: