Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SelectionRangeProvider

层级

  • SelectionRangeProvider

索引

Methods(1)

Methods(1)

provideSelectionRanges

  • Provide selection ranges for the given positions.

    Selection ranges should be computed individually and independent for each position. The editor will merge and deduplicate ranges but providers must return hierarchies of selection ranges so that a range is contained by its parent.

    Parameters

    • document: TextDocument

      The document in which the command was invoked.

    • positions: Position[]

      The positions at which the command was invoked.

    • token: CancellationToken

      A cancellation token.

    Returns ProviderResult<SelectionRange[]>

    Selection ranges or a thenable that resolves to such. The lack of a result can be signaled by returning undefined or null.

友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc. Maintained by 洛竹