Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TextDocumentContentProvider

A text document content provider allows to add readonly documents to the editor, such as source from a dll or generated html from md.

Content providers are registered for a uri-scheme. When a uri with that scheme is to be loaded the content provider is asked.

层级

  • TextDocumentContentProvider

索引

Properties(1)

Methods(1)

Properties(1)

Optional onDidChange

onDidChange: Event<Uri>

An event to signal a resource has changed.

Methods(1)

provideTextDocumentContent

  • Provide textual content for a given uri.

    The editor will use the returned string-content to create a readonly document. Resources allocated should be released when the corresponding document has been closed.

    Note: The contents of the created document might not be identical to the provided text due to end-of-line-sequence normalization.

    Parameters

    Returns ProviderResult<string>

    A string or a thenable that resolves to such.

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

Generated by TypeDoc. Maintained by 洛竹