Skip to content

Commit 6d095ec

Browse files
authored
fix: adjust end folding line (#1513)
1 parent f7ebb8c commit 6d095ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/sas/LexerEx.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,9 @@ export class LexerEx {
628628
}
629629
}
630630
this._adjustBlockTreeFoldingEnd(block);
631+
if (this.sections.length) {
632+
this.adjustFoldingEnd_(this.sections[this.sections.length - 1], block);
633+
}
631634
// add
632635
this.sections.push(block);
633636
this.tokens = [];

0 commit comments

Comments
 (0)