Skip to content

Commit 01991cb

Browse files
committed
(todo) Add function definitions
1 parent 45e51a3 commit 01991cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/features/Folding.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ export class FoldingProvider implements vscode.FoldingRangeProvider {
245245
// Find blocks of line comments # foo
246246
this.matchBlockCommentScopeElements(tokens, document).forEach((x) => { matchedTokens.push(x); });
247247

248+
// Find matching function definitions <# -> #>
249+
this.matchScopeElements(tokens, "punctuation.definition.comment.block.begin.powershell", "punctuation.definition.comment.block.end.powershell", MatchType.Comment, document).forEach( (x) => { matchedTokens.push(x); });
250+
248251
return matchedTokens;
249252
}
250253

0 commit comments

Comments
 (0)