Options
All
  • Public
  • Public/Protected
  • All
Menu

A line based folding range. To be valid, start and end line must be bigger than zero and smaller than the number of lines in the document. Invalid ranges will be ignored.

层级

  • FoldingRange

索引

Constructors(1)

Properties(3)

Constructors(1)

constructor

  • Creates a new folding range.

    Parameters

    • start: number

      The start line of the folded range.

    • end: number

      The end line of the folded range.

    • Optional kind: FoldingRangeKind

      The kind of the folding range.

    Returns FoldingRange

Properties(3)

start

start: number

The zero-based start line of the range to fold. The folded area starts after the line's last character. To be valid, the end must be zero or larger and smaller than the number of lines in the document.

end

end: number

The zero-based end line of the range to fold. The folded area ends with the line's last character. To be valid, the end must be zero or larger and smaller than the number of lines in the document.

Optional kind

Describes the Kind of the folding range such as Comment or Region. The kind is used to categorize folding ranges and used by commands like 'Fold all comments'. See FoldingRangeKind for an enumeration of all kinds. If not set, the range is originated from a syntax element.

VS Code 插件开发中文文档 | VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc | 站长统计