Closed studyingegret closed 1 year ago
try:
"explicitFolding.rules": {
"c": [
{
"begin": "//a",
"end": "//b",
"foldLastLine": false
},
]
}
Works with this.
It turns out that it's actually my fault, not the extension's: I mistyped "end"
instead of "endRegex"
and typed a regex for "end"
.
Sorry for my mistake!
To reproduce
VSCode: 1.70.1 Explicit Folding: 0.21.0 Language: C
Code:
Rules:
Expected behavior: The following folding ranges appear:
Actual behavior: No folding ranges appear.
Debug information
Output by `explicitFolding.debug` ``` [document] lang: c, fileName: c:\study-coding\learn-c\test\tmp2.c [main] regex: /(?<_0_0>\/\/a)|(?<_2_0>\\\/\\\/b)/g [main] line: 1, offset: 0, type: BEGIN, match: //a, regex: 0 [main] line: 6, offset: 0, type: BEGIN, match: //a, regex: 0 [document] foldings: [] ```