ProtectedcollectProtectedcollectProtectedcollectHandle a folding range request.
The document to compute folding ranges for
Optional_cancelToken: Cancellation.CancellationTokenThe computed folding ranges
ProtectedincludeTemplate method to determine whether the folding range for this cst node should include its last line. Returns false by default for ast nodes which end in braces and for comments.
Optionalkind: stringProtectedshouldTemplate method to determine whether the specified AstNode should be handled by the folding range provider.
Returns true by default for all nodes. Returning false only ignores the specified node and not its content.
To ignore the content of a node use shouldProcessContent.
ProtectedshouldTemplate method to determine whether the content/children of the specified AstNode should be handled by the folding range provider.
Returns true by default for all nodes. Returning false ignores all content of this node, even transitive ones.
For more precise control over foldings use the shouldProcess method.
ProtectedtoOptionalkind: string
Language-specific service for handling folding range requests.