Interface FoldingRangeProvider

The folding range provider interface defines the contract between extensions and Folding in the editor.

interface FoldingRangeProvider {
    onDidChangeFoldingRanges?: Event<void>;
    provideFoldingRanges(document, context, token): ProviderResult<FoldingRange[]>;
}

Properties

onDidChangeFoldingRanges?: Event<void>

An optional event to signal that the folding ranges from this provider have changed.

Methods