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 use a certain way to split my code into regions which doesn't use explicit region endings. I use the 'seperatorRegex' function for this, and this works well in general. However, there is one drawback with this, and that is that indentation levels are ignored with this (see the code example and current behaviour).
I would suggest adding an option to end the region when a line — that includes non-whitespace/tab characters — has less indentation than the line on which the region was started.
This could potentially also be implemented for when begin/end parameters are being instead, but that is not my current use-case though.
To reproduce
VSCode: 1.82.3
Explicit Folding: 0.23.1
Language: python, cpp, virtually all I guess
Code Example
Python Example
classFoo:
# :: REGION 01 :: #deffunction_01(self):
passdeffunction_02(self):
pass# :: REGION 02 :: #deffunction_03(self):
passdeffunction_04(self):
passclassBar:
# :: REGION 03 :: #deffunction_05(self):
passdeffunction_06(self):
pass# :: REGION 04 :: #deffunction_07(self):
passdeffunction_08(self):
pass
Describe the issue
I use a certain way to split my code into regions which doesn't use explicit region endings. I use the 'seperatorRegex' function for this, and this works well in general. However, there is one drawback with this, and that is that indentation levels are ignored with this (see the code example and current behaviour).
I would suggest adding an option to end the region when a line — that includes non-whitespace/tab characters — has less indentation than the line on which the region was started.
This could potentially also be implemented for when begin/end parameters are being instead, but that is not my current use-case though.
To reproduce
Code Example
Python Example
C++ Example
Settings
Expected behavior
Python Example
C++ Example
Current behavior
Python Example
C++ Example
The text was updated successfully, but these errors were encountered: