Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InlineValuesProvider

The inline values provider interface defines the contract between extensions and the editor's debugger inline values feature. In this contract the provider returns inline value information for a given document range and the editor shows this information in the editor at the end of lines.

层级

  • InlineValuesProvider

索引

Properties(1)

Methods(1)

Properties(1)

Optional onDidChangeInlineValues

onDidChangeInlineValues: Event<void>

An optional event to signal that inline values have changed.

see

EventEmitter

Methods(1)

provideInlineValues

  • Provide "inline value" information for a given document and range. The editor calls this method whenever debugging stops in the given document. The returned inline values information is rendered in the editor at the end of lines.

    Parameters

    • document: TextDocument

      The document for which the inline values information is needed.

    • viewPort: Range

      The visible document range for which inline values should be computed.

    • context: InlineValueContext

      A bag containing contextual information like the current location.

    • token: CancellationToken

      A cancellation token.

    Returns ProviderResult<InlineValue[]>

    An array of InlineValueDescriptors 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 洛竹