provideFoldingRanges
abstract fun provideFoldingRanges(document: TextDocument, context: FoldingContext, token: CancellationToken): ProviderResult<ReadonlyArray<FoldingRange>>(source)
Returns a list of folding ranges or null and undefined if the provider does not want to participate or was cancelled.
Parameters
document
The document in which the command was invoked.
context
Additional context information (for future use)
token
A cancellation token.