Class DefaultFoldingRangeProvider

Language-specific service for handling folding range requests.

Hierarchy (view full)

Implements

Constructors

Properties

commentNames: string[]

Methods

  • Template 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.

    Parameters

    Returns boolean

  • Template 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.

    Parameters

    Returns boolean

  • Template 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.

    Parameters

    Returns boolean