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
Two rules (first and second) have a Begin match on the same line. At the end of the block, the inside (second) End is consumed by foldLastLine, but the outside (first) End is not.
To reproduce
VSCode: 1.95.1
Explicit Folding: 0.24.1
Language: typescript
Code Example
staticread(key: string){letperson: Person=newPerson({// first BEGIN on parenthesis, second on bracename: "Jane Doe",country: "USA",birthDate: newDate("6/7/1967"),numberOfPets: 2,petNames: ["Minnie","Mickey"],hasCar: true,}// is consumed with foldLine)// should also be consumed with foldLastLinereturnperson;};
Single folded line consumes brace, does not consume closing parenthesis.
Note that the folding does process the brace on line 11 and the parenthesis on line 12. It just doesn't include the parenthesis in the handling of the foldLastLine processing.
"foldLastLine": true alone does nothing... It's an optional property of a rule.
{"start":4,"end":11,"kind":3} and {"start":4,"end":12,"kind":3} start at the same line.
They behave the same but you see a difference because {"start":4,"end":11,"kind":3} is simply ignored by the foldings displayer.
Two rules (first and second) have a Begin match on the same line. At the end of the block, the inside (second) End is consumed by foldLastLine, but the outside (first) End is not.
To reproduce
Code Example
Settings
Expected behavior
Single folded line that considers all End matches
Actual
Single folded line consumes brace, does not consume closing parenthesis.
Note that the folding does process the brace on line 11 and the parenthesis on line 12. It just doesn't include the parenthesis in the handling of the foldLastLine processing.
The text was updated successfully, but these errors were encountered: